From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Adam Witney <awitney@sgul.ac.uk>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-admin <pgsql-admin@postgresql.org>
Cc: Michael Fuhr <mike@fuhr.org>
Subject: Re: pg_dump error... Follow up
Date: Thu, 8 Sep 2005 09:38:17 -0400
Message-ID: <20050908133817.GD12971@surnet.cl> (raw)
In-Reply-To: <BF45C3C9.4C82F%awitney@sgul.ac.uk>
References: <28274.1126113140@sss.pgh.pa.us>
<BF45C3C9.4C82F%awitney@sgul.ac.uk>
On Thu, Sep 08, 2005 at 10:32:41AM +0100, Adam Witney wrote:
> Unfortunately the pg_filedump you requested gives an error:
>
> pg_filedump -R 165390 165392 134401986
>
> *******************************************************************
> * PostgreSQL File/Block Formatted Dump Utility - Version 3.0
> *
> * File: 134401986.1
> * Options used: -R 165390 165392
> *
> * Dump created on: Thu Sep 8 10:33:47 2005
> *******************************************************************
> Error: Premature end of file encountered.
>
> (there is a .1 file also for this table, do I have to stick the two together
> or something?)
No, rather tell pg_filedump to use the second segment (.1 file) and
substract the total number of blocks in the first segment. If my math
is right there are 131072 blocks of 8kB per 1GB segment, so to dump
block 165390 you need to ask for block 34318 in the second segment:
pg_filedump -R 34318 34320 134401986.1
--
Alvaro Herrera -- Valdivia, Chile Architect, www.EnterpriseDB.com
"Et put se mouve" (Galileo Galilei)
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: alvherre@alvh.no-ip.org, awitney@sgul.ac.uk, tgl@sss.pgh.pa.us, mike@fuhr.org
Subject: Re: pg_dump error... Follow up
In-Reply-To: <20050908133817.GD12971@surnet.cl>
References: <28274.1126113140@sss.pgh.pa.us> <BF45C3C9.4C82F%awitney@sgul.ac.uk> <20050908133817.GD12971@surnet.cl>
* 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