Re: pgsql-server: Fix oversight in recent ALTER TABLE

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
Cc: pgsql-committers(at)postgresql(dot)org
Subject: Re: pgsql-server: Fix oversight in recent ALTER TABLE
Date: 2004-06-11 01:27:39
Message-ID: 17572.1086917259@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au> writes:
>> Fix oversight in recent ALTER TABLE improvements. We now support
>> ALTER TABLE tab ADD COLUMN col SERIAL, but we forgot to install the
>> dependency between the column and the sequence, so the sequence
>> would not go away if you dropped the table later.

> What if you ALTER TABLE / TYPE SERIAL?

You can't --- it won't recognize the SERIAL alias in that context.

regards, tom lane

In response to

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2004-06-11 01:34:14 Re: pgsql-server: Clean up generation of default names
Previous Message Christopher Kings-Lynne 2004-06-11 01:14:37 Re: pgsql-server: Clean up generation of default names