From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | nikolay(at)samokhvalov(dot)com, PostgreSQL-general <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Sequences/defaults and pg_dump |
Date: | 2006-02-07 14:49:02 |
Message-ID: | 200602071449.k17En2e18501@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers |
Tom Lane wrote:
> Nikolay Samokhvalov <samokhvalov(at)gmail(dot)com> writes:
> > testseq=# CREATE TABLE test(id SERIAL, data TEXT);
> > NOTICE: CREATE TABLE will create implicit sequence "test_id_seq" for
> > serial column "test.id"
> > CREATE TABLE
> > ***
> > ALTER TABLE test ALTER COLUMN id SET DEFAULT nextval('test_id_seq') * 10;
>
> The correct solution to this is to forbid ALTER COLUMN SET DEFAULT on
> a serial column, but we haven't gotten around to enforcing that yet.
TODO has:
* %Disallow changing default expression of a SERIAL column
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From | Date | Subject | |
---|---|---|---|
Next Message | Flavio Basile | 2006-02-07 14:50:41 | Commercial Use |
Previous Message | Tom Lane | 2006-02-07 14:43:34 | Re: Sequences/defaults and pg_dump |
From | Date | Subject | |
---|---|---|---|
Next Message | William ZHANG | 2006-02-07 15:03:03 | Re: Compiling UDF DLL under Win32 |
Previous Message | Tom Lane | 2006-02-07 14:43:34 | Re: Sequences/defaults and pg_dump |