ProvSQL C/C++ API
Adding support for provenance and uncertainty management to PostgreSQL databases
Loading...
Searching...
No Matches
tool_registry_sync.h
Go to the documentation of this file.
1/**
2 * @file tool_registry_sync.h
3 * @brief Reload the in-memory external-tool registry from its persistent
4 * overrides.
5 *
6 * The default tools are compiled in (seeded in @ref ToolRegistry.h); an
7 * administrator's changes are stored in the @c provsql.tool_overrides table.
8 * @ref provsql_sync_tool_registry rebuilds the per-backend in-memory registry
9 * as "compiled seed, overlaid with the override rows", so a registration made
10 * in one backend is honoured by every other. It must be called at the top of
11 * any SQL function that consults the registry (the probability / compile /
12 * shapley / visualise dispatchers, the @c provsql.tools listing, and the
13 * mutators themselves).
14 *
15 * It uses SPI (nesting-safe) and is a no-op leaving just the compiled seed
16 * when the overrides table is absent (an extension older than 1.8.0, or the
17 * upgrade not yet applied), so older databases keep working unchanged.
18 *
19 * Extension-only: not linked into the standalone @c tdkc tool, which invokes
20 * no external tool.
21 */
22#ifndef PROVSQL_TOOL_REGISTRY_SYNC_H
23#define PROVSQL_TOOL_REGISTRY_SYNC_H
24
26
27#endif
void provsql_sync_tool_registry()
Rebuild the in-memory registry as "compiled seed overlaid with the provsql.tool_overrides rows"...