Karl Wright wrote:
Tom Lane wrote:
Karl Wright <kwright@xxxxxxxxxxxxx> 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$