Re: RE: [HACKERS] pg_dump & blobs - editable dump?

From: Philip Warner <pjw(at)rhyme(dot)com(dot)au>
To: Peter Mount <petermount(at)it(dot)maidstone(dot)gov(dot)uk>, pgsql-hackers(at)postgresql(dot)org, pgsql-general(at)postgresql(dot)org
Cc: Pavel(at)Janik(dot)cz
Subject: Re: RE: [HACKERS] pg_dump & blobs - editable dump?
Date: 2000-07-12 14:17:28
Message-ID: 3.0.5.32.20000713001728.02f3b440@mail.rhyme.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

At 14:58 12/07/00 +0100, Peter Mount wrote:
>Why not have it using something like tar, and the first file being stored in
>ascii?
>
>That way, you could extract easily the human readable SQL but still pipe the
>blobs to stdout.

Has Tom Lane paid you to send this message? :-}

If anyone can send me a nice interface for reading and writing a tar file
from C, I'll do it. I just don't have the inclination to learn about tar
internals at the moment. By 'nice' I mean that I would like:

- to be able to create the archive and write files sequentially using
something similar to fopen/fwrite/fclose.

- open an archive and examine and read files sequentially using a similar
interface to opendir/readdir/fopen/fread/fclose.

- Ideally open a specified file in the archive by name, but if not
possible, then it should be easy using the 'opedir' function above.

This would be a very useful library, I am sure. It also needs to be
licensable under BSD to go into the PG distribution.

----------------------------------------------------------------
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 |/

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Philip Warner 2000-07-12 14:21:53 Re: [HACKERS] pg_dump & blobs - editable dump?
Previous Message Ken Causey 2000-07-12 14:14:10 Retrieving INTERVAL as float hours?

Browse pgsql-hackers by date

  From Date Subject
Next Message Philip Warner 2000-07-12 14:21:53 Re: [HACKERS] pg_dump & blobs - editable dump?
Previous Message Lamar Owen 2000-07-12 14:13:39 Re: [HACKERS] pg_dump & blobs - editable dump?