ProvSQL C/C++ API
Adding support for provenance and uncertainty management to PostgreSQL databases
Loading...
Searching...
No Matches
LoweredCte Struct Reference

Memo entry mapping a recursive-CTE name to its lowered scan subquery. More...

Public Attributes

const char * name
Query * subquery

Detailed Description

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.

Definition at line 411 of file provsql.c.

Member Data Documentation

◆ name

const char* LoweredCte::name

Definition at line 412 of file provsql.c.

◆ subquery

Query* LoweredCte::subquery

Definition at line 413 of file provsql.c.


The documentation for this struct was generated from the following file:
  • /home/senellar/git/software/provsql/src/provsql.c