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

Leave the provsql column out of the whole-row values of provenance-tracked relations where any row is read. More...

Public Attributes

Index group_rt
Bitmapset * cols

Detailed Description

Leave the provsql column out of the whole-row values of provenance-tracked relations where any row is read.

The row type of a tracked table has its provsql column, so that row_to_json(t), t::text or json_agg(t.*) show the token of the row, which is not data. Where the value is read as any row – the output of the statement shown to the user (not stored by a CREATE TABLE AS, nor returned by a function), a parameter of type record, "any" or polymorphic with a result type of its own (the json functions), a conversion to text – it becomes the anonymous record of the other columns, and so it does where two rows are compared or grouped (t = u, IN, CASE t WHEN, GROUP BY t), so that equal rows are equal whatever their tokens. Where the table's own row type is needed (t::tbl, a function on it), it stays. Runs on the query and the bodies of its sublinks, before the rewriting that would otherwise meet the whole-row value.

Context for retype_group_var_mut.

Definition at line 31648 of file provsql.c.

Member Data Documentation

◆ cols

Bitmapset* retype_group_ctx::cols

Definition at line 31650 of file provsql.c.

◆ group_rt

Index retype_group_ctx::group_rt

Definition at line 31649 of file provsql.c.


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