Sequences with pg_dump -a not properly set

From: pgsql-bugs(at)postgresql(dot)org
To: pgsql-bugs(at)postgresql(dot)org
Subject: Sequences with pg_dump -a not properly set
Date: 2001-07-07 20:59:49
Message-ID: 200107072059.f67Kxn940948@hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

HERVE Laurent (laurent_herve(at)infonie(dot)fr) reports a bug with a severity of 3
The lower the number the more severe it is.

Short Description
Sequences with pg_dump -a not properly set

Long Description
I use PostgreSQL 7.0.3

When I use the pg_dump -a, the script contains CREATE SEQUENCE statements for loading data for sequences.
As the sequence already exists, the statement fails when I try to load the dump (for data only). It should have generated setval statements or something equivalent...

Sample Code

No file was uploaded with this report

Browse pgsql-bugs by date

  From Date Subject
Next Message Risko Peter 2001-07-09 06:57:29 sql query cursor problem
Previous Message Peter Eisentraut 2001-07-07 09:25:55 Re: can't create timestamp field (only timestamp with time zone)