Re: Error at end of pg_dump output (setting sequence number?)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Dan Delaney <Dionysos(at)mail(dot)Dionysia(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Error at end of pg_dump output (setting sequence number?)
Date: 2003-01-22 05:56:06
Message-ID: 17089.1043214966@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Dan Delaney <Dionysos(at)mail(dot)Dionysia(dot)org> writes:
> I just did a pg_dump (with the -d param) of one of my databases in
> order to move it to a new server. When I put it into the new server,
> all the tables were created just fine, and all of the data was inserted
> just fine, then I got an error at the very end which read:
> ERROR: parser: parse error at or near "("
> The line that seems to have given that error was at the very end of the
> pg_dump output, and it was:
> SELECT pg_catalog.setval ('order_number_seq', 10039784, true);

That command is fine ... to a 7.3 server. I'm betting you tried to
restore a 7.3 dump into a pre-7.3 server.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Antti Haapala 2003-01-22 06:00:36 Re: loading delimited files
Previous Message Tom Lane 2003-01-22 05:52:32 Re: ERROR: Unable to transform targetlist (internal error)