All Questions
Postgresql hard

Starting with PostgreSQL 12, what major change was made to the way Common Table Expressions (CTEs/`WITH` clauses) are handled by the query planner?

  1. A CTEs are now automatically encrypted in the WAL to prevent data leakage during asynchronous replication.
  2. B Non-recursive CTEs can be 'inlined' into the main query, allowing for cross-boundary optimization.
  3. C Recursive CTEs are now required to specify a maximum depth limit to prevent infinite loops at runtime.
  4. D The results of all CTEs are physically written to the `pg_temp` directory as unlogged columnar files.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions