Open lawrencejones opened 7 months ago
Hey team 👋
This is pretty useful if you want to opt-into the materialized modifier when referencing CTEs, such as when you want to use the CTE as an optimisation fence.
Thanks submit this PR @lawrencejones !! We would like to accept and release your initiative, so can you write test code to see if the queries are generated as expected?The test code does not actually run the query in the database, so no database preparation is required.
Allow specifying the modifier that enforces an optimisation fence for Postgres CTEs.