Re: [GENERAL] Restore from dump file: parse error - Mailing list pgsql-general

From darold
Subject Re: [GENERAL] Restore from dump file: parse error
Date
Msg-id 37368CBD.9871B199@neptune.fr
Whole thread Raw
In response to Re: [GENERAL] Restore from dump file: parse error  (S P Arif Sahari Wibowo <arifsaha-lists@parokinet.org>)
Responses Re: [GENERAL] Restore from dump file: parse error  (Herouth Maoz <herouth@oumail.openu.ac.il>)
List pgsql-general
Hi,

Well to quote that single quote, you have to quote that single quote :-)
ex : s_field='suivre l'actualite'
=>  s_field='suivre l''actualite'

pg_dump -D mydatabase > recover.sql  or other options will never solve
this pg_dump feature.

You can make a little program with perl to process your entire file by
search single quote not after an = and not before a , and space and ) and (.

Regards,

Gilles Darold

S P Arif Sahari Wibowo wrote:

> On Fri, 7 May 1999, darold wrote:
>
> >To get the database creation you must use the -s option with pg_dump.
> >(Dump out only the schema, no data)
>
> Well, I like to have both.
>
> >The parse error is probably due to a single quote somewhere in you text
> >data...
>
> Well, you are correct! Is there anyway to quote that single quote?
>
> >I use : pg_dump -D mydatabase > recover.sql
>
> Should it solve the single quote problem?
>
> Thanks!
>
> Arif




pgsql-general by date:

Previous
From: Chris Bitmead
Date:
Subject: Re: [GENERAL] Empty Date Field
Next
From: "J M Doren"
Date:
Subject: SQl Mail LIst (Spanish)