![]() |
ProvSQL C/C++ API
Adding support for provenance and uncertainty management to PostgreSQL databases
|
SQL function provsql.aggregation_evaluate() – aggregate provenance evaluation.
More...
#include "postgres.h"#include "fmgr.h"#include "catalog/pg_type.h"#include "utils/uuid.h"#include "executor/spi.h"#include "access/htup_details.h"#include "provsql_utils.h"#include "provsql_shmem.h"
Go to the source code of this file.
Functions | |
| Datum | aggregation_evaluate (PG_FUNCTION_ARGS) |
| PostgreSQL-callable wrapper for aggregation_evaluate(). | |
SQL function provsql.aggregation_evaluate() – aggregate provenance evaluation.
Implements the SQL-callable function that evaluates an aggregate provenance circuit over a user-supplied semiring. The function is invoked when the query engine encounters a gate_agg / gate_semimod sub-circuit and dispatches to the appropriate SPI-based evaluation helper in Aggregation.cpp.
All semiring operations (plus, times, monus, delta, agg, semimod) are passed as PostgreSQL function OIDs so that the semiring is fully user-defined and extensible from SQL.
Definition in file aggregation_evaluate.c.
| Datum aggregation_evaluate | ( | PG_FUNCTION_ARGS | ) |
PostgreSQL-callable wrapper for aggregation_evaluate().
Definition at line 28 of file aggregation_evaluate.c.
