mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-05 18:34:09 +00:00
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:
@@ -72,13 +72,13 @@ export const SESSION_KEYWORDS: ReadonlySet<string> = new Set([
|
||||
* returns a single value (`FROM unnest(...) u`, `FROM generate_series(...)
|
||||
* g`) or a parameter (`$1.f`), that value is the argument. None of these
|
||||
* reads anything called that way: `version` takes no argument, so the
|
||||
* notation never calls it, and `money`, `name`, `oid` and `xml` only
|
||||
* notation never calls it, and `money`, `name`, `oid`, `oid8` and `xml` only
|
||||
* convert their argument to the type of that name. Every other refused name
|
||||
* is refused after a dot too. `xid` is not here: `u.xid` casts `u` to the
|
||||
* transaction id type, whose `age()` reads the server's transaction counter.
|
||||
* PGPLUG-021 holds each name here to that on the lane's server.
|
||||
*/
|
||||
export const COLUMN_NAMES: ReadonlySet<string> = new Set(['money', 'name', 'oid', 'version', 'xml']);
|
||||
export const COLUMN_NAMES: ReadonlySet<string> = new Set(['money', 'name', 'oid', 'oid8', 'version', 'xml']);
|
||||
|
||||
/** The function names of `pg_catalog` on every supported major, one per line, sorted. */
|
||||
export const CATALOG_FUNCTIONS_FILE = path.join(
|
||||
|
||||
Reference in New Issue
Block a user