From: Mi cro <micro6947@gmail.com>
To: pgsql-docs@postgresql.org
Subject: Documented parameter names differ from callable proargnames for several built-ins
Date: Sat, 31 Oct 2026 14:39:20 +0800
Message-ID: <19D9D4CB-8C31-493E-982A-1E17042D68C5@gmail.com> (raw)
Hello,
Several built-in functions are documented with parameter names that differ from
the names registered in pg_proc. PostgreSQL supports named-argument calls, so
these differences directly affect whether the documented call can be used.
For example, on PostgreSQL 16.14:
SELECT parse_ident(str => 'a.b');
-- {a,b}
SELECT parse_ident(qualified_identifier => 'a.b');
-- ERROR: function parse_ident(qualified_identifier => unknown) does not exist
The current REL_18_STABLE documentation uses qualified_identifier/strict_mode,
while pg_proc.dat registers the names as str/strict.
The same class of mismatch appears in:
- make_timestamp and make_timestamptz: documentation uses day;
pg_proc uses mday.
- jsonb_set, jsonb_set_lax, and jsonb_insert: documentation uses
target/new_value; the registered names are jsonb_in/replacement.
- table_to_xml, table_to_xmlschema, and table_to_xml_and_xmlschema:
documentation uses table; pg_proc uses tbl.
- pg_logical_emit_message in PG18: documentation uses content; the SQL-visible
name is message for both overloads.
References:
https://www.postgresql.org/docs/current/sql-syntax-calling-funcs.htmlhttps://github.com/postgres/postgres/blob/REL_18_STABLE/doc/src/sgml/func.sgmlhttps://github.com/postgres/postgres/blob/REL_18_STABLE/src/include/catalog/pg_proc.dathttps://github.com/postgres/postgres/blob/REL_18_STABLE/src/backend/catalog/system_functions.sql
I suggest updating the displayed names to the SQL-visible parameter names.
Renaming the runtime parameters would change named-call compatibility.
Regards
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-docs@postgresql.org
Cc: micro6947@gmail.com
Subject: Re: Documented parameter names differ from callable proargnames for several built-ins
In-Reply-To: <19D9D4CB-8C31-493E-982A-1E17042D68C5@gmail.com>
References: <19D9D4CB-8C31-493E-982A-1E17042D68C5@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox