fix(postgres): keep plugin columns named like PostgreSQL 19's new functions

Besides uuid, 19 brings error_on_null, tid_block, tid_offset and oid8 to
the catalog, and since the catalog list is the same for every server the
guard refused a plugin's s.error_on_null column on 14 to 18 too, where it
had always passed. error_on_null and the tuple id parts only read their
argument and join the allowlist, where PGPLUG-022 checks their overloads;
oid8 only converts, like oid, and joins the column names.
This commit is contained in:
Maurice
2026-11-28 00:05:17 +01:00
parent 793be249a2
commit 30914a4d6c
3 changed files with 11 additions and 2 deletions
@@ -184,6 +184,13 @@ uuid
varbit
varchar
# Values new in PostgreSQL 19 that read only their argument: a check that raises on NULL,
# and the block and offset of a tuple id a plugin builds itself (the ctid column stays
# refused). Listed so a plugin column of the same name keeps working on every server.
error_on_null
tid_block
tid_offset
# JSON.
array_to_json
json_agg