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

SQL functions provsql.circuit_canonical_form(), provsql.circuit_island_key(), provsql.prob_cache_stats() and provsql.prob_cache_reset() – inspect the canonical form of a circuit and the cache of compiled d-DNNFs. More...

#include "postgres.h"
#include "fmgr.h"
#include "varatt.h"
#include "catalog/pg_type.h"
#include "utils/jsonb.h"
#include "utils/fmgrprotos.h"
#include "utils/uuid.h"
#include "provsql_shmem.h"
#include "provsql_utils.h"
#include "c_cpp_compatibility.h"
#include "BooleanCircuit.h"
#include "ProbCache.h"
#include "CircuitCanonicalForm.h"
#include "CircuitFromMMap.h"
#include "provsql_utils_cpp.h"
#include <sstream>
#include <string>
Include dependency graph for canonical_form_sql.cpp:

Go to the source code of this file.

Functions

Datum circuit_canonical_form (PG_FUNCTION_ARGS)
Datum circuit_island_key (PG_FUNCTION_ARGS)
Datum prob_cache_stats (PG_FUNCTION_ARGS)
Datum prob_cache_reset (PG_FUNCTION_ARGS)

Detailed Description

SQL functions provsql.circuit_canonical_form(), provsql.circuit_island_key(), provsql.prob_cache_stats() and provsql.prob_cache_reset() – inspect the canonical form of a circuit and the cache of compiled d-DNNFs.

Diagnostics for the cache of ProbCache.h: the first two show the keys a circuit is looked up under, the last two read and empty the cache of the current session.

Definition in file canonical_form_sql.cpp.

Function Documentation

◆ circuit_canonical_form()

Datum circuit_canonical_form ( PG_FUNCTION_ARGS )

Definition at line 54 of file canonical_form_sql.cpp.

Here is the call graph for this function:

◆ circuit_island_key()

Datum circuit_island_key ( PG_FUNCTION_ARGS )

Definition at line 78 of file canonical_form_sql.cpp.

Here is the call graph for this function:

◆ prob_cache_reset()

Datum prob_cache_reset ( PG_FUNCTION_ARGS )

Definition at line 134 of file canonical_form_sql.cpp.

Here is the call graph for this function:

◆ prob_cache_stats()

Datum prob_cache_stats ( PG_FUNCTION_ARGS )

Definition at line 107 of file canonical_form_sql.cpp.

Here is the call graph for this function: