Re: pg_dump fails to include sequences, leads to restore fail in any version
От | Alvaro Herrera |
---|---|
Тема | Re: pg_dump fails to include sequences, leads to restore fail in any version |
Дата | |
Msg-id | 20080617214320.GE10140@alvh.no-ip.org обсуждение исходный текст |
Ответ на | Re: pg_dump fails to include sequences, leads to restore fail in any version ("Jeffrey Baker" <jwbaker@gmail.com>) |
Ответы |
Re: pg_dump fails to include sequences, leads to restore fail in any version
|
Список | pgsql-hackers |
Jeffrey Baker escribió: > On Tue, Jun 17, 2008 at 10:59 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote: > > > "Jeffrey Baker" <jwbaker@gmail.com> writes: > > > It is impossible to dump (with pg_dump -Ocx) and restore (with psql) a > > > database which contains sequences in any of 8.1, 8.2, or 8.3: > > > > I should think we would have heard about it before now if such a > > sweeping claim were true. > > Last time this problem came up, in August, you dismissed it somewhat > rudely. So perhaps the lack of reports is due more to perception than any > other thing. How did you set it up exactly? I have no problem with this situation: $ psql Welcome to psql 8.1.10, the PostgreSQL interactive terminal. Type: \copyright for distribution terms \h for help with SQL commands \? for help with psql commands \g orterminate with semicolon to execute query \q to quit alvherre=# create table foo (a serial); NOTICE: CREATE TABLE will create implicit sequence "foo_a_seq" for serial colum n "foo.a" CREATE TABLE alvherre=# \q $ pg_dump -t foo | psql foo SET SET SET SET SET SET CREATE TABLE ALTER TABLEsetval -------- 1 (1 row) -- Alvaro Herrera http://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc.
В списке pgsql-hackers по дате отправления: