Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-committers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group