Re: Export/import issue/question

From: Karl Wright <kwright(at)metacarta(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Export/import issue/question
Date: 2007-06-19 16:53:34
Message-ID: 46780A0E.9000705@metacarta.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Karl Wright wrote:
> Tom Lane wrote:
>> Karl Wright <kwright(at)metacarta(dot)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(at)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(at)baetis:/common$

>
>
>

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2007-06-19 17:12:10 Re: Export/import issue/question
Previous Message Karl Wright 2007-06-19 16:50:53 Re: Export/import issue/question