routine_sequence_usage column is named sequence_catalog, not schema_catalog
routine_sequence_usage column is named sequence_catalog, not schema_catalog
От:
PG Doc comments form <noreply@postgresql.org>
Дата:
The following documentation comment has been logged on the website:
Page: https://www.postgresql.org/docs/18/infoschema-routine-sequence-usage.html
Description:
The information_schema.routine_sequence_usage page names the sequence
catalog
column "schema_catalog", but the view returns "sequence_catalog".
On PostgreSQL 16.14:
SELECT sequence_catalog
FROM information_schema.routine_sequence_usage
LIMIT 0;
-- success
SELECT schema_catalog
FROM information_schema.routine_sequence_usage
LIMIT 0;
-- ERROR: column "schema_catalog" does not exist
The REL_18_STABLE view definition also declares sequence_catalog:
https://github.com/postgres/postgres/blob/REL_18_STABLE/src/backend/catalog/information_schema.sql#L1478
The same documentation text appears in PG14 through PG19 pages. I suggest
changing schema_catalog to sequence_catalog in information_schema.sgml.
Re: routine_sequence_usage column is named sequence_catalog, not schema_catalog
On Sat, Oct 31, 2026 at 6:50 PM PG Doc comments form wrote: > The same documentation text appears in PG14 through PG19 pages. I suggest > changing schema_catalog to sequence_catalog in information_schema.sgml. Thanks for the report! I've created the patch. Attached. Barring any objections, I will commit it and backpatch it to v14. Regards, -- Fujii Masao