Re: pg_dump bug in 7.3.9 with sequences

Поиск
Список
Период
Сортировка
Искать
От
Tom Lane
Тема
Re: pg_dump bug in 7.3.9 with sequences
Дата
Msg-id
6686.1107379308@sss.pgh.pa.us
Ответ на
Список
Дерево обсуждения
pg_dump bug in 7.3.9 with sequences "Joshua D. Drake" <jd@commandprompt.com>
Re: pg_dump bug in 7.3.9 with sequences Tom Lane <tgl@sss.pgh.pa.us>
Re: pg_dump bug in 7.3.9 with sequences "Joshua D. Drake" <jd@commandprompt.com>
Re: pg_dump bug in 7.3.9 with sequences Alvaro Herrera <alvherre@dcc.uchile.cl>
Re: pg_dump bug in 7.3.9 with sequences "Joshua D. Drake" <jd@commandprompt.com>
Re: pg_dump bug in 7.3.9 with sequences Tom Lane <tgl@sss.pgh.pa.us>
Re: pg_dump bug in 7.3.9 with sequences "Joshua D. Drake" <jd@commandprompt.com>
Re: pg_dump bug in 7.3.9 with sequences Christopher Kings-Lynne <chriskl@familyhealth.com.au>
Re: pg_dump bug in 7.3.9 with sequences Tom Lane <tgl@sss.pgh.pa.us>
Re: pg_dump bug in 7.3.9 with sequences "Joshua D. Drake" <jd@commandprompt.com>
Re: pg_dump bug in 7.3.9 with sequences Tom Lane <tgl@sss.pgh.pa.us>
Re: pg_dump bug in 7.3.9 with sequences Christopher Kings-Lynne <chriskl@familyhealth.com.au>
Re: pg_dump bug in 7.3.9 with sequences Alvaro Herrera <alvherre@dcc.uchile.cl>
Re: pg_dump bug in 7.3.9 with sequences Dawid Kuroczko <qnex42@gmail.com>
"Joshua D. Drake"  writes:
> However if you do the following:

> create table foo (foo serial not null, bar text);
> create sequence foo_seq;
> alter table foo alter column foo set default nextval('foo_seq');

This is flat out pilot error: you do not get to mess with the default
expression of a SERIAL column, because it's part of the internal
implementation of the SERIAL pseudo-type.  If I were going to do
anything about it, I'd patch ALTER TABLE to refuse the above command.
		regards, tom lane

В списке pgsql-hackers по дате отправления
От: Tom Lane
Дата:
Сообщение: Re: [NOVICE] Last ID Problem
От: Merlin Moncure
Дата:
Сообщение: Re: [NOVICE] Last ID Problem
FAQ