pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Wilson <petew@yellowhawk.co.uk>
To: pgsql-admin@postgresql.org
Subject: Re: Problem restoring with pg_dump
Date: Tue, 28 Nov 2006 23:31:24 +0000
Message-ID: <ekigsd$2150$1@news.hub.org> (raw)
In-Reply-To: <6113.1164728816@sss.pgh.pa.us>
References: <ekh1c7$1qct$1@news.hub.org>
	<6113.1164728816@sss.pgh.pa.us>

Tom Lane wrote:
> Peter Wilson <petew@yellowhawk.co.uk> writes:
>> pg_restore : [custom archiver] Dumping a specific TOC data block out of order is
>> not supported without ID on this input stream (fseek required).
> 
> Could you show us the unmodified output from pg_restore -l, as well as
> the edits you made to produce the -L script?
> 
> 			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
> 
Raw output from pg_restore -l is as follows:
=================================
;
; Archive created at Mon Nov 27 01:35:56 2006
;     dbname: whitebeam
;     TOC Entries: 24
;     Compression: 9
;     Dump Version: 1.10-0
;     Format: CUSTOM
;     Integer: 4 bytes
;     Offset: 8 bytes
;     Dumped from database version: 8.1.4
;     Dumped by pg_dump version: 8.1.4
;
;
; Selected TOC Entries:
;
1656; 0 0 SEQUENCE SET public audit_id_seq whitebeam
1657; 0 0 SEQUENCE SET public collection_id_seq whitebeam
1658; 0 0 SEQUENCE SET public contacts_contact_id_seq whitebeam
1659; 0 0 SEQUENCE SET public files_file_id_seq whitebeam
1660; 0 0 SEQUENCE SET public items_item_id_seq whitebeam
1661; 0 0 SEQUENCE SET public searchtree_node_id_seq whitebeam
1654; 0 89555 TABLE DATA public audit whitebeam
1652; 0 43231 TABLE DATA public collection_types whitebeam
1653; 0 43243 TABLE DATA public collections whitebeam
1639; 0 43140 TABLE DATA public contact_att whitebeam
1649; 0 43203 TABLE DATA public contact_item whitebeam
1650; 0 43208 TABLE DATA public contact_node whitebeam
1638; 0 43131 TABLE DATA public contacts whitebeam
1646; 0 43185 TABLE DATA public files whitebeam
1643; 0 43165 TABLE DATA public item_files whitebeam
1641; 0 43154 TABLE DATA public item_leafs whitebeam
1647; 0 43194 TABLE DATA public item_prices whitebeam
1644; 0 43169 TABLE DATA public itemdata whitebeam
1645; 0 43178 TABLE DATA public items whitebeam
1648; 0 43199 TABLE DATA public node_leafs whitebeam
1640; 0 43146 TABLE DATA public searchtree whitebeam
1651; 0 43213 TABLE DATA public site whitebeam
1642; 0 43158 TABLE DATA public stockdata whitebeam

=================================
The re-ordered version is:
=================================
;
; Archive created at Mon Nov 27 01:35:56 2006
;     dbname: whitebeam
;     TOC Entries: 24
;     Compression: 9
;     Dump Version: 1.10-0
;     Format: CUSTOM
;     Integer: 4 bytes
;     Offset: 8 bytes
;     Dumped from database version: 8.1.4
;     Dumped by pg_dump version: 8.1.4
;
;
; Selected TOC Entries:
;
1656; 0 0 SEQUENCE SET public audit_id_seq whitebeam
1657; 0 0 SEQUENCE SET public collection_id_seq whitebeam
1658; 0 0 SEQUENCE SET public contacts_contact_id_seq whitebeam
1659; 0 0 SEQUENCE SET public files_file_id_seq whitebeam
1660; 0 0 SEQUENCE SET public items_item_id_seq whitebeam
1661; 0 0 SEQUENCE SET public searchtree_node_id_seq whitebeam
1638; 0 43131 TABLE DATA public contacts whitebeam
1645; 0 43178 TABLE DATA public items whitebeam
1639; 0 43140 TABLE DATA public contact_att whitebeam
1649; 0 43203 TABLE DATA public contact_item whitebeam
1650; 0 43208 TABLE DATA public contact_node whitebeam
1646; 0 43185 TABLE DATA public files whitebeam
1643; 0 43165 TABLE DATA public item_files whitebeam
1647; 0 43194 TABLE DATA public item_prices whitebeam
1644; 0 43169 TABLE DATA public itemdata whitebeam
1640; 0 43146 TABLE DATA public searchtree whitebeam
1648; 0 43199 TABLE DATA public node_leafs whitebeam
1641; 0 43154 TABLE DATA public item_leafs whitebeam
1642; 0 43158 TABLE DATA public stockdata whitebeam
1652; 0 43231 TABLE DATA public collection_types whitebeam
1653; 0 43243 TABLE DATA public collections whitebeam
1654; 0 89555 TABLE DATA public audit whitebeam
1651; 0 43213 TABLE DATA public site whitebeam
=================================

Pete



view thread (10+ messages)  latest in thread

Message-ID: <ekigsd$2150$1@news.hub.org>
Permalink:  ../ekigsd$2150$1@news.hub.org/
Also on:    postgresql.org/message-id/ekigsd$2150$1@news.hub.org

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: petew@yellowhawk.co.uk
  Subject: Re: Problem restoring with pg_dump
  In-Reply-To: <ekigsd$2150$1@news.hub.org>
  References: <ekh1c7$1qct$1@news.hub.org> <6113.1164728816@sss.pgh.pa.us> <ekigsd$2150$1@news.hub.org>

* 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