Thread: pg_dump failure in tar format.

pg_dump failure in tar format.

From
"Tomeh, Husam"
Date:
I'm getting the following error message (postgres 8.0):

pg_dump: [tar archiver] could not write to tar member (wrote 2128,
attempted 3738) when I run pg_dump with -Ft (tar format).

When I ran the backup job, it terminate abnormally with the error after
about 1 minute, yet I still have over 25 GB of free space on the file
system /pload (terminated backup file is only 21 MB). I read a thread
where someone stated that it has to do with size of the /tmp and not
actually the file system I'm directing my pg_dump to. Is this true?  (my
/tmp has about 2 GB of free space).
http://archives.postgresql.org/pgsql-bugs/2003-08/msg00005.php

Any clue ?  Thank,

(I'm using the tar format because I'm backing up the tables on an 8.0
postgres database and then need to restore them on 7.x database.)



--
 Husam



---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

**********************************************************************
This message contains confidential information intended only for the
use of the addressee(s) named above and may contain information that
is legally privileged.  If you are not the addressee, or the person
responsible for delivering it to the addressee, you are hereby
notified that reading, disseminating, distributing or copying this
message is strictly prohibited.  If you have received this message by
mistake, please immediately notify us by replying to the message and
delete the original message immediately thereafter.

Thank you.                                       FADLD Tag
**********************************************************************


Re: pg_dump failure in tar format.

From
Tom Lane
Date:
"Tomeh, Husam" <htomeh@firstam.com> writes:
> I'm getting the following error message (postgres 8.0):

> pg_dump: [tar archiver] could not write to tar member (wrote 2128,
> attempted 3738) when I run pg_dump with -Ft (tar format).

IIRC there are size limitations in the tar format.  Is there a reason
you don't use -Fc instead?

            regards, tom lane

Re: pg_dump failure in tar format.

From
"Tomeh, Husam"
Date:
I was told that because the data is on postgres 8.0 and I'm trying to
restore on another database which 7.3 that I can not do that. However,
researching more, I could not find a proof to what I was told, So, I
will try to use -Fc  instead. Do you agree that I can restore with -Fc
regardless of the different versions of the databases?


Pg_dump is running against 8.0 database
Pg_restore is running against 7.3 database

Thanks,

--
 Husam Tomeh
 Sr. Database Administrator
 First American Real Estate Solutions
 Direct: (714) 701-5674
 E-mail: htomeh@firstam.com


-----Original Message-----
From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
Sent: Monday, August 01, 2005 5:18 PM
To: Tomeh, Husam
Cc: pgsql-admin@postgresql.org
Subject: Re: [ADMIN] pg_dump failure in tar format.

"Tomeh, Husam" <htomeh@firstam.com> writes:
> I'm getting the following error message (postgres 8.0):

> pg_dump: [tar archiver] could not write to tar member (wrote 2128,
> attempted 3738) when I run pg_dump with -Ft (tar format).

IIRC there are size limitations in the tar format.  Is there a reason
you don't use -Fc instead?

            regards, tom lane

**********************************************************************
This message contains confidential information intended only for the
use of the addressee(s) named above and may contain information that
is legally privileged.  If you are not the addressee, or the person
responsible for delivering it to the addressee, you are hereby
notified that reading, disseminating, distributing or copying this
message is strictly prohibited.  If you have received this message by
mistake, please immediately notify us by replying to the message and
delete the original message immediately thereafter.

Thank you.                                       FADLD Tag
**********************************************************************


Re: pg_dump failure in tar format.

From
Tom Lane
Date:
"Tomeh, Husam" <htomeh@firstam.com> writes:
> I was told that because the data is on postgres 8.0 and I'm trying to
> restore on another database which 7.3 that I can not do that. However,
> researching more, I could not find a proof to what I was told, So, I
> will try to use -Fc  instead. Do you agree that I can restore with -Fc
> regardless of the different versions of the databases?

You're very likely going to have some issues with SQL command syntax,
but I don't believe that using -Ft instead of -Fc would help on that.

My recommendation is to try a schema-only dump (-s option) and make sure
you can load that, before you spend time making and loading a full dump.

            regards, tom lane