Repository navigation
What's new in 1.14.1
ProvSQL 1.14.1 makes add_provenance faster, corrects conditions on
aggregates that read no value from some rows, fixes the d-tree
probability method, and supports PostgreSQL 19.
Faster add_provenance
add_provenancenow fills the new column while rewriting the table,
instead of updating every row, and computes statistics on it. The table
is left without dead rows, and its ownUPDATEtriggers no longer fire.
AREPEATABLE READtransaction opened before the call may see the table
as empty. Contributed by @SoTrx (#113).- Random UUIDs now come from the built-in
gen_random_uuid()on
PostgreSQL 13 and later, instead ofuuid-ossp. Together, the two
changes makeadd_provenanceabout 3 times as fast on a table of
500,000 rows with two indexes.
Conditions on aggregates
- Rows whose argument is
NULL, or that aFILTERleaves out, are now
kept as members of their group, so that a condition on the aggregate
(HAVING) takes their presence into account. IS NULLandIS NOT NULLon an aggregate are evaluated as conditions
on the number of rows that have a value.- An
ORbetween such a condition and an ordinary one that holds is now
correct in semirings that are not Boolean algebras.
Other changes
provenance()over untracked data returns the semiring one.d-treeno longer takes exponential time on circuits with sharing, can
be interrupted, accepts a relative accuracy (kind=relative), and
rejects arguments it does not read.- An error caught in a subtransaction nested more than 64 levels deep no
longer silences later warnings. - PostgreSQL 19 is supported.