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

Walker: count SubLink nodes (capturing the first), and capture a Var referencing varno target_varno (level 0) – used to find a Q column for the count() key. More...

Collaboration diagram for oj_sublink_scan:

Public Attributes

int n_sublinks
SubLink * found_sublink
Index target_varno
Var * found_var
Var * found_plain_var
 The first such Var whose column is no aggregate result, preferred where the column is counted: counting an aggregate result is a test that its row is there, which reads as an aggregation over an aggregate result and is refused, while any other column of the same rows answers it.
const constants_t * constants
 For that recognition, or NULL to skip it.
RangeTblEntry * target_rte
 The entry target_varno addresses.

Detailed Description

Walker: count SubLink nodes (capturing the first), and capture a Var referencing varno target_varno (level 0) – used to find a Q column for the count() key.

Definition at line 16022 of file provsql.c.

Member Data Documentation

◆ constants

const constants_t* oj_sublink_scan::constants

For that recognition, or NULL to skip it.

Definition at line 16034 of file provsql.c.

◆ found_plain_var

Var* oj_sublink_scan::found_plain_var

The first such Var whose column is no aggregate result, preferred where the column is counted: counting an aggregate result is a test that its row is there, which reads as an aggregation over an aggregate result and is refused, while any other column of the same rows answers it.

Recognised by the column, not by its type: the Var still has the type the query declares, the retyping to agg_token coming later.

Definition at line 16033 of file provsql.c.

◆ found_sublink

SubLink* oj_sublink_scan::found_sublink

Definition at line 16024 of file provsql.c.

◆ found_var

Var* oj_sublink_scan::found_var

Definition at line 16026 of file provsql.c.

◆ n_sublinks

int oj_sublink_scan::n_sublinks

Definition at line 16023 of file provsql.c.

◆ target_rte

RangeTblEntry* oj_sublink_scan::target_rte

The entry target_varno addresses.

Definition at line 16035 of file provsql.c.

◆ target_varno

Index oj_sublink_scan::target_varno

Definition at line 16025 of file provsql.c.


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