pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Can NOT dump db with 6.4.2's pg_dumpall
4+ messages / 3 participants
[nested] [flat]

* Can NOT dump db with 6.4.2's pg_dumpall
@ 2000-02-19 19:41  Michael Ma <mikema@ficnet.net>
  0 siblings, 1 reply; 4+ messages in thread

From: Michael Ma @ 2000-02-19 19:41 UTC (permalink / raw)
  To: pgsql-admin

Hi,

In order to upgrade from 6.4.2 to 6.5.2, I tried to dump my db by typing

[postgres@redhat60 pgsql]$ pg_dumpall -z > db.out

Instead of getting a dump file, I got the following message.

========================================================================
pg_dump: The -z option(dump ACLs) is now the default, continuing.
SET TRANSACTION command failed.  Explanation from backend: 'ERROR: 
parser: parse error at or near "transaction"
'.
pg_dump failed on cqn, exiting
========================================================================

My working platform is: RedHat Linux 6.0 with kernel 2.2.5-22 on a P-200
machine with 49M RAM.

Can anybody help?  Thanks in advance.

Michael



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

* RE: [ADMIN] Can NOT dump db with 6.4.2's pg_dumpall
@ 2000-02-19 23:49  Matthew <matt@ctlno.com>
  0 siblings, 1 reply; 4+ messages in thread

From: Matthew @ 2000-02-19 23:49 UTC (permalink / raw)
  To: 'Michael Ma ' <mikema@ficnet.net>; pgsql-admin

I'm not sure if this will help but I just dealt with a similar problem.
When I tried to do a pg_dump it would fail.  It turned out the culpret
was one single bad value in one row of one table.  Any query that
returned that value would fail also, so I had to go through an
interitive process of select statements to identify the offending row.
Once I found it, I was able to delete the row, and everything worked
again.

Hope that helps, it was a bear of a problem for me.

-----Original Message-----
From: Michael Ma
To: pgsql-admin@postgresql.org
Sent: 2/19/00 1:41 PM
Subject: [ADMIN] Can NOT dump db with 6.4.2's pg_dumpall

Hi,

In order to upgrade from 6.4.2 to 6.5.2, I tried to dump my db by typing

[postgres@redhat60 pgsql]$ pg_dumpall -z > db.out

Instead of getting a dump file, I got the following message.

========================================================================
pg_dump: The -z option(dump ACLs) is now the default, continuing.
SET TRANSACTION command failed.  Explanation from backend: 'ERROR: 
parser: parse error at or near "transaction"
'.
pg_dump failed on cqn, exiting
========================================================================

My working platform is: RedHat Linux 6.0 with kernel 2.2.5-22 on a P-200
machine with 49M RAM.

Can anybody help?  Thanks in advance.

Michael

************



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

* Re: [ADMIN] Can NOT dump db with 6.4.2's pg_dumpall
@ 2000-02-20 07:49  Michael Ma <mikema@ficnet.net>
  parent: Matthew <matt@ctlno.com>
  0 siblings, 0 replies; 4+ messages in thread

From: Michael Ma @ 2000-02-20 07:49 UTC (permalink / raw)
  To: pgsql-admin

Hi, Matthew

I have tried to dump tables one by one to identify the table contains
bad value.  However I got the following error messages from each dump.

..........
SET TRANSACTION command failed.  Explanation from backend: 'ERROR: 
parser: parse error at or near "transaction"'.
..........

May I know how you manage to locate the bad value? Or, are there other
ways (may be more complicated) to dump a table/db?

Thanks

Michael
===================
Matthew wrote:
> 
> I'm not sure if this will help but I just dealt with a similar problem.
> When I tried to do a pg_dump it would fail.  It turned out the culpret
> was one single bad value in one row of one table.  Any query that
> returned that value would fail also, so I had to go through an
> interitive process of select statements to identify the offending row.
> Once I found it, I was able to delete the row, and everything worked
> again.
> 
> Hope that helps, it was a bear of a problem for me.



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

* Re: [ADMIN] Can NOT dump db with 6.4.2's pg_dumpall
@ 2000-02-20 14:21  Peter Eisentraut <peter_e@gmx.net>
  parent: Michael Ma <mikema@ficnet.net>
  0 siblings, 0 replies; 4+ messages in thread

From: Peter Eisentraut @ 2000-02-20 14:21 UTC (permalink / raw)
  To: Michael Ma <mikema@ficnet.net>; +Cc: pgsql-admin

Sounds like your two installations get mixed up. Make sure that the 6.5.2
commands are not in your path and that the 6.4.2 ones are.

Btw., we're at 6.5.3 now.


On 2000-02-20, Michael Ma mentioned:

> In order to upgrade from 6.4.2 to 6.5.2, I tried to dump my db by typing
> 
> [postgres@redhat60 pgsql]$ pg_dumpall -z > db.out
> 
> Instead of getting a dump file, I got the following message.
> 
> ========================================================================
> pg_dump: The -z option(dump ACLs) is now the default, continuing.
> SET TRANSACTION command failed.  Explanation from backend: 'ERROR: 
> parser: parse error at or near "transaction"
> '.
> pg_dump failed on cqn, exiting
> ========================================================================

-- 
Peter Eisentraut                  Sernanders väg 10:115
peter_e@gmx.net                   75262 Uppsala
http://yi.org/peter-e/            Sweden





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


end of thread, other threads:[~2000-02-20 14:21 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-02-19 19:41 Can NOT dump db with 6.4.2's pg_dumpall Michael Ma <mikema@ficnet.net>
2000-02-20 14:21 ` Peter Eisentraut <peter_e@gmx.net>
2000-02-19 23:49 RE: [ADMIN] Can NOT dump db with 6.4.2's pg_dumpall Matthew <matt@ctlno.com>
2000-02-20 07:49 ` Michael Ma <mikema@ficnet.net>

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