ProvSQL C/C++ API
Adding support for provenance and uncertainty management to PostgreSQL databases
Loading...
Searching...
No Matches
aggregation_evaluate.c
Go to the documentation of this file.
1/**
2 * @file aggregation_evaluate.c
3 * @brief Compatibility stub for the removed @c provsql.aggregation_evaluate().
4 *
5 * The aggregation-over-GROUP-BY custom-semiring dispatcher is gone from the
6 * SQL surface (the agg_token aggregates and the compiled sr_* readouts cover
7 * it), but the C symbol must stay: the frozen 1.0.0 fixture declares the
8 * function and PostgreSQL validates the library symbol when CREATE EXTENSION
9 * provsql VERSION '1.0.0' runs (upgrade-path tests), even though later
10 * upgrade scripts drop the function. The historical implementation
11 * dispatched over SPI to a same-named plpgsql driver that the current
12 * surface does not define, so a call could not succeed anyway; the stub
13 * returns NULL unconditionally.
14 */
15#include "postgres.h"
16#include "fmgr.h"
17
18PG_FUNCTION_INFO_V1(aggregation_evaluate);
19
20/** @brief Always-NULL stub kept for old-version installs. */
21Datum aggregation_evaluate(PG_FUNCTION_ARGS)
22{
23 (void) fcinfo;
24 PG_RETURN_NULL();
25}
Datum aggregation_evaluate(PG_FUNCTION_ARGS)
Always-NULL stub kept for old-version installs.