pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
migration from postgresql-7.2. to 7.4.1 : invalid command \n
4+ messages / 3 participants
[nested] [flat]

* migration from postgresql-7.2. to 7.4.1 : invalid command \n
@ 2004-03-09 19:24  Frédéric Médery <mederyf@LEXUM.UMontreal.CA>
  0 siblings, 0 replies; 4+ messages in thread

From: Frédéric Médery @ 2004-03-09 19:24 UTC (permalink / raw)
  To: pgsql-admin

I did a pg_dump with the -d option during the extract.
Inside the dump I have a lot of \012. i replace those with \n (carriage 
return).

But when I try to import into a new DB I had : invalid command \n

Is ther e a better way to add carriage return in the sql file ?










^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* migration from postgresql-7.2. to 7.4.1 : invalid command \n
@ 2004-03-09 21:59  Frederic Medery <dist-list@LEXUM.UMontreal.CA>
  0 siblings, 1 reply; 4+ messages in thread

From: Frederic Medery @ 2004-03-09 21:59 UTC (permalink / raw)
  To: pgsql-admin

I did a pg_dump with the -d option during the extract.
Inside the dump I have a lot of \012. i replace those with \n (carriage
return).

But when I try to import into a new DB I had : invalid command \n

Is ther e a better way to add carriage return in the sql file ?

Thank !









^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: migration from postgresql-7.2. to 7.4.1 : invalid command \n
@ 2004-03-10 00:25  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Frederic Medery <dist-list@LEXUM.UMontreal.CA>
  0 siblings, 1 reply; 4+ messages in thread

From: Tom Lane @ 2004-03-10 00:25 UTC (permalink / raw)
  To: Frederic Medery <dist-list@LEXUM.UMontreal.CA>; +Cc: pgsql-admin

Frederic Medery <dist-list@LEXUM.UMontreal.CA> writes:
> I did a pg_dump with the -d option during the extract.
> Inside the dump I have a lot of \012. i replace those with \n (carriage
> return).

Huh?  \012 *is* \n.  Carriage return (a/k/a \r or \015) is something
else, and it is not what you want.

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: migration from postgresql-7.2. to 7.4.1 : invalid command
@ 2004-03-10 18:15  Frederic Medery <dist-list@LEXUM.UMontreal.CA>
  parent: Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 4+ messages in thread

From: Frederic Medery @ 2004-03-10 18:15 UTC (permalink / raw)
  To: ; +Cc: pgsql-admin

I had to you use pg_dump -d -D. now the import works fine !

F


Tom Lane wrote:

>Frederic Medery <dist-list@LEXUM.UMontreal.CA> writes:
>  
>
>>I did a pg_dump with the -d option during the extract.
>>Inside the dump I have a lot of \012. i replace those with \n (carriage
>>return).
>>    
>>
>
>Huh?  \012 *is* \n.  Carriage return (a/k/a \r or \015) is something
>else, and it is not what you want.
>
>			regards, tom lane
>
>---------------------------(end of broadcast)---------------------------
>TIP 4: Don't 'kill -9' the postmaster
>  
>



^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2004-03-10 18:15 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-03-09 19:24 migration from postgresql-7.2. to 7.4.1 : invalid command \n Frédéric Médery <mederyf@LEXUM.UMontreal.CA>
2004-03-09 21:59 migration from postgresql-7.2. to 7.4.1 : invalid command \n Frederic Medery <dist-list@LEXUM.UMontreal.CA>
2004-03-10 00:25 ` Tom Lane <tgl@sss.pgh.pa.us>
2004-03-10 18:15   ` Re: migration from postgresql-7.2. to 7.4.1 : invalid command Frederic Medery <dist-list@LEXUM.UMontreal.CA>

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