pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Phillip Smith <phillip.smith@weatherbeeta.com.au>
Cc: pgsql-admin@postgresql.org
Subject: Re: Restoring pg_dump Backup with psql Fails
Date: Fri, 28 Dec 2007 21:26:06 -0500
Message-ID: <27312.1198895166@sss.pgh.pa.us> (raw)
In-Reply-To: <003501c849b1$95ed1200$9b0014ac@wbaus090>
References: <003501c849b1$95ed1200$9b0014ac@wbaus090>

"Phillip Smith" <phillip.smith@weatherbeeta.com.au> writes:
> But I get a whole bunch of errors, for example:
> <snip>
> ERROR:  syntax error at or near "all"
> LINE 1: all orders over $400.00 - freight free Order 10 of any produ...
>         ^

Please show us the *first* few errors, not some randomly chosen ones.
The above looks like a COPY has failed and psql has started thinking
that copy-data lines are commands, but how or why that happened is
not in evidence.

			regards, tom lane



view thread (8+ messages)  latest in thread

Message-ID: <27312.1198895166@sss.pgh.pa.us>
Permalink:  ../27312.1198895166@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/27312.1198895166@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, phillip.smith@weatherbeeta.com.au
  Subject: Re: Restoring pg_dump Backup with psql Fails
  In-Reply-To: <27312.1198895166@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox