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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: bsislow(at)accertify(dot)com
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #19455: ALTER TABLE RENAME will rename a sequence
Date: 2026-04-13 14:22:02
Message-ID: 823735.1776090122@sss.pgh.pa.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

PG Bug reporting form <noreply(at)postgresql(dot)org> writes:
> Is this expected behavior? ALTER TABLE RENAME will rename a sequence.

Yes, it is. It'll work on views and (most?) other kinds of relations
too.

To some extent this is a hangover from before we had the more
specialized variants. But it can be handy to not worry too much
about just what kind of relation you're renaming, and tightening
that up would likely break some applications, so we haven't.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message David G. Johnston 2026-04-13 14:23:11 Re: BUG #19455: ALTER TABLE RENAME will rename a sequence
Previous Message Tom Lane 2026-04-13 14:12:31 Re: BUG #19454: PL/pgSQL mishandling jsonb attribute reference