pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Horace A. Vallas, Jr. <hav@hav.com>
To: Peter Eisentraut <peter_e@gmx.net>
Cc: pgsql-docs@postgresql.org
Subject: Re: doc for pg_dump
Date: Thu, 30 Aug 2001 17:03:40 -0500
Message-ID: <3B8EB83C.4B5C5B5@hav.com> (raw)
References: <Pine.LNX.4.30.0108302352000.679-100000@peter.localdomain>

Hi Peter -

sorry if this is the wrong place to ask - but I was looking for
some documentation of the pg_dump/pg_dumpall output format
AND/OR some pointers on how to recognize and correctly handle index
relations when grabbing all tables in a database.

Anyway - the error I get when using pg_dump (or pg_dumpall) is...

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

... which, from what I have found searching the postgresql site,
seems to indicate a mismatch in the version of pg_dump used - 
OR funky values in one or more tables.

Either is certainly possible in my case, and I HAVE found some
funky values (even a col type of "_text") in the exercise of
writing a home-grown pg_dump.

I think I have been able to correct such bad cases in the output
I'm producing but I do not know the actual format of the pg_dump 
(or pg_dumpall) output and I cannot find any documentation for that 
format?

Perhaps none exists?  But I thought this was a good place to
ask??

What I do now is just output a bunch of \connect/CREATE
record pairs and then a bunch of "COPY ... from stdin"
sections.

I'm pretty much for sure that I need to include some handling of the
index relations that exist in the current databases (really really 
don't want to think about having to redo all of those by hand 8-], but, 
at the moment, I'm recognizing them based on exceptions and simply 
skipping them because I'm not sure how to snarf them.

Any pointers to docs or how-to's would be greatly appreciated.

-- 
Wishing you an "OOBA OOBA" 21st Century!!
Horace                            ...once known as "Kicker" :-)  
================================================================
Horace Vallas   hav.Software                 http://www.hav.com/     
                P.O. Box 354                         hav@hav.com
                Richmond, Tx. 77406-0354     voice: 281-341-5035 
                USA                            fax: 281-341-5087

Thawte Web Of Trust Notary in SW Houston, Tx.
http://www.hav.com/?content=/thawteWOTnotary.htm
================================================================
...drop by and chat if I'm online       http://www.hav.com/chat/
===   ===   ===   ===   ===   ===   ===   ===   ===   ===   ====
What is a Vet? ... He is the barroom loudmouth, dumber than five 
wooden planks, whose overgrown frat-boy behavior is outweighed a 
hundred times in the cosmic scales by four hours of exquisite 
bravery near the 38th parallel. ...   - Unknown
================================================================


Peter Eisentraut wrote:
> 
> Horace A. Vallas, Jr. writes:
> 
> > I'm writing to this address because the links for mail lists fail and
> > said to write here if looking for docs and such...
> 
> This is the list for writing docs.
> 
> > I have some problem that is keeping me from being able to use
> > pg_dump or pg_dumpall on a 6.4 version.  What I have found mentioned
> > about the error indicates either that my pg_xxxx applications are
> > the wrong versions for the database (very possible) or that there
> > is a problem with one or more table values (possibly but all databases
> > and tables on the machine fail to dump).
> 
> It would be more helpful to say what the error was rather than saying what
> you think it meant.
> 
> --
> Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter

Attachments:

  smime.p7s (application/x-pkcs7-signature, 2.0K) download

view thread (4+ messages)  latest in thread

Message-ID: <3B8EB83C.4B5C5B5@hav.com>
Permalink:  ../3B8EB83C.4B5C5B5@hav.com/
Also on:    postgresql.org/message-id/3B8EB83C.4B5C5B5@hav.com

 · 

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-docs@postgresql.org
  Cc: hav@hav.com, peter_e@gmx.net
  Subject: Re: doc for pg_dump
  In-Reply-To: <3B8EB83C.4B5C5B5@hav.com>

* 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