Unix Technical Forum

Re: pg_dump failure in tar format.

This is a discussion on Re: pg_dump failure in tar format. within the pgsql Admins forums, part of the PostgreSQL category; --> I was told that because the data is on postgres 8.0 and I'm trying to restore on another database ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Admins

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 05:04 AM
Tomeh, Husam
 
Posts: n/a
Default Re: pg_dump failure in tar format.


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


---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 05:04 AM
Tom Lane
 
Posts: n/a
Default Re: pg_dump failure in tar format.

"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

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 01:01 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com