From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Ron St-Pierre <rstpierre(at)syscor(dot)com> |
Cc: | Igor Kryltsov <igork(at)amitygroup(dot)com(dot)au>, pgsql-general <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: How to drop sequence? |
Date: | 2004-03-01 23:59:14 |
Message-ID: | 18702.1078185554@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Ron St-Pierre <rstpierre(at)syscor(dot)com> writes:
> Does anyone know if this is the way this is supposed
> to work,
Yes it is. The fact that there is a sequence involved in a SERIAL
column is really an implementation detail that you're not supposed to
muck with. Thus the dependency is on the column itself; drop the column
if you want to make the sequence go away.
(There should probably be some defense against letting you mess with the
column default expression, too, but we don't have one at the moment.)
If this isn't how you'd like things to work, don't use the SERIAL
shorthand. Create the sequence yourself.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Keith Bottner | 2004-03-02 00:33:05 | Re: Setting up Postgresql on Linux |
Previous Message | Kuldeep Tanna | 2004-03-01 23:48:00 | How to Cancel a query ? |