routine_sequence_usage column is named sequence_catalog, not schema_catalog

Started by PG Bug reporting form24 days ago3 messagesdocs
Jump to latest
#1PG Bug reporting 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.

#2Fujii Masao
masao.fujii@gmail.com
In reply to: PG Bug reporting form (#1)
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
<noreply@postgresql.org> 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

Attachments:

t254493_2
v1-0001-doc-Fix-column-name-in-routine_sequence_usage-doc.patchapplication/octet-stream; name=v1-0001-doc-Fix-column-name-in-routine_sequence_usage-doc.patchDownload+1-2
#3Fujii Masao
masao.fujii@gmail.com
In reply to: Fujii Masao (#2)
Re: routine_sequence_usage column is named sequence_catalog, not schema_catalog

On Mon, Nov 2, 2026 at 12:35 AM Fujii Masao <masao.fujii@gmail.com> wrote:

Barring any objections, I will commit it and backpatch it to v14.

I've pushed the patch. Thanks!

Regards,

--
Fujii Masao