Re: AW: Modified pg_dump & new pg_restore need testing...

From: Philip Warner <pjw(at)rhyme(dot)com(dot)au>
To: Zeugswetter Andreas SB <ZeugswetterA(at)wien(dot)spardat(dot)at>, "'Peter Eisentraut'" <peter_e(at)gmx(dot)net>
Cc: The Hermit Hacker <scrappy(at)hub(dot)org>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: AW: Modified pg_dump & new pg_restore need testing...
Date: 2000-07-03 08:33:21
Message-ID: 3.0.5.32.20000703183321.021f8210@mail.rhyme.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

At 10:18 3/07/00 +0200, Zeugswetter Andreas SB wrote:
>
>Imho the default should be text for anything except data. The data should
>imho
>be in a format similar to a binary cursor. I say similar, because this
>format should
>probably be converted to a network byte order, so you can restore on another
>hardware. Imho calling type output and input functions during backup/restore
>is a substantial overhead that would best be avoided.
>

Have a look at the utilities. I have attempted to make the custom format
transportable (at least as transportable as pg_dump). If anyone has a 64
bit machine with weird byte order I'd love them to test restoring a backup
made on another machine. If it does not work, I am happy to make it work
(at least as well as pg_dump works).

It just occurred to me that I may be missing something...do you mean you
would prefer to avoid the 'COPY' commands as the backup technique? If so, I
think that's best left to somebody else (or me, but not now, and probably
not until the WAL is implemented).

Also, defining your own output format is pretty easy; the new code defines
a top level interface (for pg_dump and pg_restore) and an archiver
interface (for output file formats), if you really want a different format.

----------------------------------------------------------------
Philip Warner | __---_____
Albatross Consulting Pty. Ltd. |----/ - \
(A.C.N. 008 659 498) | /(@) ______---_
Tel: (+61) 0500 83 82 81 | _________ \
Fax: (+61) 0500 83 82 82 | ___________ |
Http://www.rhyme.com.au | / \|
| --________--
PGP key available upon request, | /
and from pgp5.ai.mit.edu:11371 |/

Browse pgsql-hackers by date

  From Date Subject
Next Message Zeugswetter Andreas SB 2000-07-03 08:39:12 AW: AW: Modified pg_dump & new pg_restore need testing. ..
Previous Message Zeugswetter Andreas SB 2000-07-03 08:28:05 AW: Big 7.1 open items