pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Karl Wright <kwright@metacarta.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-admin@postgresql.org
Subject: Re: Export/import issue/question
Date: Tue, 19 Jun 2007 12:53:34 -0400
Message-ID: <46780A0E.9000705@metacarta.com> (raw)
In-Reply-To: <4678096D.4030504@metacarta.com>
References: <4677F3D2.6050909@metacarta.com>
	<29984.1182268843@sss.pgh.pa.us>
	<4678096D.4030504@metacarta.com>

Karl Wright wrote:
> Tom Lane wrote:
>> Karl Wright <kwright@metacarta.com> writes:
>>> But, I get the following error:
>>> pg_restore: [tar archiver] could not find header for file toc.dat in 
>>> tar archive
>>
>> Could we see "pg_restore -l" output for that dump file?
>>
>> This looks a bit like some bugs we've seen before, eg,
>> http://archives.postgresql.org/pgsql-bugs/2006-10/msg00263.php
>> but the particular cause of that one wouldn't apply to a 7.4
>> dump file.
>>
>>             regards, tom lane
>>
> 
> You could, if I could get it.
> 
> When I do this:
> 
> pg_restore -l
> 
> it just hangs.  No CPU usage, no disk usage - just sits there.
> 
> When I do this:
> 
> pg_restore -l --file dbsnapshot
> 
> ... same thing.
> 
> When I supply database credentials via -U and -W, then it simply displays:
> 
> 
> pg_restore: [tar archiver] could not find header for file toc.dat in tar 
> archive
> 
> Not very helpful, I know.  Any other ideas?
> 
> Karl
> 

Nevermind.  The man page was not clear for -l.  Here's the output:

kwright@baetis:/common$ sudo pg_restore -l dbsnapshot
;
; Archive created at Tue Jun 19 09:39:30 2007
;     dbname: metacarta
;     TOC Entries: 20
;     Compression: 0
;     Dump Version: 1.7-0
;     Format: TAR
;     Integer: 4 bytes
;     Offset: 8 bytes
;
;
; Selected TOC Entries:
;
2; 0 17143 TABLE DATA public agents metacarta
3; 0 17147 TABLE DATA public ingeststatus metacarta
4; 0 17156 TABLE DATA public authconnectors metacarta
5; 0 17161 TABLE DATA public authconnections metacarta
6; 0 17175 TABLE DATA public connectors metacarta
7; 0 17180 TABLE DATA public repoconnections metacarta
8; 0 17198 TABLE DATA public jobs metacarta
9; 0 17210 TABLE DATA public schedules metacarta
10; 0 17220 TABLE DATA public jobcollections metacarta
11; 0 17227 TABLE DATA public jobqueue metacarta
12; 0 30176 TABLE DATA public repohistory metacarta
13; 0 30191 TABLE DATA public throttlespec metacarta
14; 0 30198 TABLE DATA public jobhopfilters metacarta
15; 0 30212 TABLE DATA public hopcount metacarta
16; 0 30226 TABLE DATA public intrinsiclink metacarta
17; 0 30239 TABLE DATA public hopdeletedeps metacarta
18; 0 30257 TABLE DATA public robotsdata metacarta
19; 0 30264 TABLE DATA public dnsdata metacarta
20; 0 0 BLOBS - BLOBS
kwright@baetis:/common$


> 
> 
> 




view thread (7+ messages)  latest in thread

Message-ID: <46780A0E.9000705@metacarta.com>
Permalink:  ../46780A0E.9000705@metacarta.com/
Also on:    postgresql.org/message-id/46780A0E.9000705@metacarta.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-admin@postgresql.org
  Cc: kwright@metacarta.com, tgl@sss.pgh.pa.us
  Subject: Re: Export/import issue/question
  In-Reply-To: <46780A0E.9000705@metacarta.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