![]() |
ProvSQL C/C++ API
Adding support for provenance and uncertainty management to PostgreSQL databases
|
Memo entry mapping a recursive-CTE name to its lowered scan subquery. More...
Public Attributes | |
| const char * | name |
| Query * | subquery |
Memo entry mapping a recursive-CTE name to its lowered scan subquery.
A recursive CTE referenced more than once (e.g. in two arms of a top-level UNION) must be lowered – and its backing temp table created by eval_recursive – exactly once: re-running the fixpoint would DROP TABLE the temp table that an earlier reference's analyzed scan already bound to by OID, yielding "could not open relation with OID ...". inline_ctes_in_rtable records each lowering here and reuses it for subsequent references to the same CTE.