From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Robert Fitzpatrick <robert(at)webtent(dot)com> |
Cc: | PostgreSQL <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Dropping sequences |
Date: | 2004-11-30 20:52:17 |
Message-ID: | 24315.1101847937@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Robert Fitzpatrick <robert(at)webtent(dot)com> writes:
> I have changed the default sequence on a primary key integer (created as
> SERIAL) field in a table, but it will not let me drop the old sequence
> and continues to tell me that the sequence is required by the table. Can
> someone tell me what is required to get this dropped?
Theoretically you have to drop the serial column.
If you don't mind mucking with system catalogs, you could remove the
pg_depend entry linking the sequence to the column, and then it would
let you drop the sequence.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Fuhr | 2004-11-30 21:09:53 | Re: Postgres Design |
Previous Message | Tom Lane | 2004-11-30 20:42:36 | Re: VACUUM and ANALYZE Follow-Up |