Specifying OID for BLOBs?

Started by Philip Warnerover 25 years ago1 messages
#1Philip Warner
pjw@rhyme.com.au

My work on pg_dump/pg_restore has left me wondering about also supporting
BLOBs. I realize that TOAST will replace BLOBs, but the ability to dump &
restore a DB with BLOBs will make conversion a lot easier, I would guess.

The question then is, for the purpose of pg_dump/restore, how difficult
would it be to create a 'lo_create_with_oid' function?

This technique would obviously only work properly for full restores of the
database, and if the max oid was set prior to the restore.

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