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
bool reach_routed
Oid edge_relid
const char * src_name
const char * dst_name
const char * source_text
Oid source_relid
const char * source_attname
bool directed
const char * edge_quals
const char * edge_sql
const char * work_name

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_system – exactly once: re-running the driver 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 1217 of file provsql.c.

Member Data Documentation

◆ directed

bool LoweredCte::directed

Definition at line 1232 of file provsql.c.

◆ dst_name

const char* LoweredCte::dst_name

Definition at line 1228 of file provsql.c.

◆ edge_quals

const char* LoweredCte::edge_quals

Definition at line 1233 of file provsql.c.

◆ edge_relid

Oid LoweredCte::edge_relid

Definition at line 1226 of file provsql.c.

◆ edge_sql

const char* LoweredCte::edge_sql

Definition at line 1234 of file provsql.c.

◆ name

const char* LoweredCte::name

Definition at line 1218 of file provsql.c.

◆ reach_routed

bool LoweredCte::reach_routed

Definition at line 1225 of file provsql.c.

◆ source_attname

const char* LoweredCte::source_attname

Definition at line 1231 of file provsql.c.

◆ source_relid

Oid LoweredCte::source_relid

Definition at line 1230 of file provsql.c.

◆ source_text

const char* LoweredCte::source_text

Definition at line 1229 of file provsql.c.

◆ src_name

const char* LoweredCte::src_name

Definition at line 1227 of file provsql.c.

◆ subquery

Query* LoweredCte::subquery

Definition at line 1219 of file provsql.c.

◆ work_name

const char* LoweredCte::work_name

Definition at line 1238 of file provsql.c.


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