Re: BUG #19455: ALTER TABLE RENAME will rename a sequence

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: "bsislow(at)accertify(dot)com" <bsislow(at)accertify(dot)com>, "pgsql-bugs(at)lists(dot)postgresql(dot)org" <pgsql-bugs(at)lists(dot)postgresql(dot)org>
Subject: Re: BUG #19455: ALTER TABLE RENAME will rename a sequence
Date: 2026-04-13 14:23:11
Message-ID: CAKFQuwYBYgpra9+tH3dYQT=MMotrebVjvu1Pj2c20a3OUEKBCQ@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Monday, April 13, 2026, PG Bug reporting form <noreply(at)postgresql(dot)org>
wrote:

> The following bug has been logged on the website:
>
> Bug reference: 19455
> Logged by: Bob Sislow
> Email address: bsislow(at)accertify(dot)com
> PostgreSQL version: 15.2
> Operating system: Red Hat Enterprise Linux release 8.7 (Ootpa)
> Description:
>
> Is this expected behavior? ALTER TABLE RENAME will rename a sequence.

It’s documented:

https://www.postgresql.org/docs/current/sql-altertable.html#SQL-ALTERTABLE-DESC-RENAME

Arguably it’s better to use alter sequence so the somewhat buried
documentation for this seems ok.

David J.

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Michael Paquier 2026-04-13 17:24:04 Re: BUG #19006: Assert(BufferIsPinned) in BufferGetBlockNumber() is triggered for forwarded buffer
Previous Message Tom Lane 2026-04-13 14:22:02 Re: BUG #19455: ALTER TABLE RENAME will rename a sequence