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

From: Lamar Owen <lamar(dot)owen(at)wgcr(dot)org>
To: Philip Warner <pjw(at)rhyme(dot)com(dot)au>
Cc: pgsql-hackers(at)postgresql(dot)org, pgsql-general(at)postgresql(dot)org, Pavel(at)Janik(dot)cz
Subject: Re: [HACKERS] pg_dump & blobs - editable dump?
Date: 2000-07-12 14:38:57
Message-ID: 396C8301.3BE562C7@wgcr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

Philip Warner wrote:
> At 10:13 12/07/00 -0400, Lamar Owen wrote:
> >Philip Warner wrote:
> >> I'll obviosly need to be passed a directory/file location for the script
> >> since I can't pipe seperate files to stdout.
> >
> >uuencode the blobs, perhaps, using a shar-like format?

> For the human readable version, the request was to make it editable and
> sendable to psql. As a result the BLOBs need to be in their binary format
> OR psql needs to support BLOB import from stdin. As a first pass I was
> hoping for the simple 'dump them into files' solution.

If in a shell archive format, shouldn't it be easy enough for pg_restore
to be made to do the stdin-to-blob thing (through whatever mechanisms
you're already using to get the blob back in in the first place,
combined with some steering/deshar-ing/uudecoding logic)? The backup
could even be made 'self-extracting' as shars usually are... :-) Of
course, you then have to be on the watch for the usual shar trojans...

If we simply know that the backup cannot be sent to psql, but a
deshar-ed version can have the schema sent to psql, would that
ameliorate most concerns?

--
Lamar Owen
WGCR Internet Radio
1 Peter 4:11

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Philip Warner 2000-07-12 14:56:24 RE: [HACKERS] pg_dump & blobs - editable dump?
Previous Message Peter Mount 2000-07-12 14:32:10 RE: [HACKERS] pg_dump & blobs - editable dump?

Browse pgsql-hackers by date

  From Date Subject
Next Message The Hermit Hacker 2000-07-12 14:55:16 Re: Vacuum only with 20% old tuples
Previous Message Peter Mount 2000-07-12 14:32:10 RE: [HACKERS] pg_dump & blobs - editable dump?