Re: ALTER TABLE RENAME column - Mailing list pgsql-hackers

From Tom Lane
Subject Re: ALTER TABLE RENAME column
Date
Msg-id 13875.1163777855@sss.pgh.pa.us
Whole thread Raw
In response to Re: ALTER TABLE RENAME column  ("Mario Weilguni" <mario.weilguni@icomedias.com>)
Responses Re: ALTER TABLE RENAME column
List pgsql-hackers
"Mario Weilguni" <mario.weilguni@icomedias.com> writes:
> IMO this should do:
> Alter sequence foo_bar_seq rename to foo_baf_seq;
> Alter table foo alter baf set default nextval('foo_baf_seq')

No, it should not, because that risks breaking other references to the
sequence (eg, in user-written functions).  If the user is feeling that
he wants consistency, he can rename the sequence himself and take
responsibility for any side-effects on his code.
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Mario Weilguni"
Date:
Subject: Re: ALTER TABLE RENAME column
Next
From: "Jonah H. Harris"
Date:
Subject: Re: ALTER TABLE RENAME column