pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pg_dump failure in tar format.
4+ messages / 2 participants
[nested] [flat]

* pg_dump failure in tar format.
@ 2005-08-01 23:43 Tomeh, Husam <htomeh@firstam.com>
  2005-08-02 00:17 ` Re: pg_dump failure in tar format. Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 4+ messages in thread

From: Tomeh, Husam @ 2005-08-01 23:43 UTC (permalink / raw)
  To: pgsql-admin

 
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
**********************************************************************




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

* Re: pg_dump failure in tar format.
  2005-08-01 23:43 pg_dump failure in tar format. Tomeh, Husam <htomeh@firstam.com>
@ 2005-08-02 00:17 ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 4+ messages in thread

From: Tom Lane @ 2005-08-02 00:17 UTC (permalink / raw)
  To: Tomeh, Husam <htomeh@firstam.com>; +Cc: pgsql-admin

"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



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

* Re: pg_dump failure in tar format.
@ 2005-08-02 00:23 Tomeh, Husam <htomeh@firstam.com>
  2005-08-02 00:35 ` Re: pg_dump failure in tar format. Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 4+ messages in thread

From: Tomeh, Husam @ 2005-08-02 00:23 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-admin


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
**********************************************************************




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

* Re: pg_dump failure in tar format.
  2005-08-02 00:23 Re: pg_dump failure in tar format. Tomeh, Husam <htomeh@firstam.com>
@ 2005-08-02 00:35 ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 4+ messages in thread

From: Tom Lane @ 2005-08-02 00:35 UTC (permalink / raw)
  To: Tomeh, Husam <htomeh@firstam.com>; +Cc: pgsql-admin

"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



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


end of thread, other threads:[~2005-08-02 00:35 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-08-01 23:43 pg_dump failure in tar format. Tomeh, Husam <htomeh@firstam.com>
2005-08-02 00:17 ` Tom Lane <tgl@sss.pgh.pa.us>
2005-08-02 00:23 Re: pg_dump failure in tar format. Tomeh, Husam <htomeh@firstam.com>
2005-08-02 00:35 ` Tom Lane <tgl@sss.pgh.pa.us>

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