Re: restoring large objects - Mailing list pgsql-admin

From Tom Lane
Subject Re: restoring large objects
Date
Msg-id 6115.1081318077@sss.pgh.pa.us
Whole thread Raw
In response to Re: restoring large objects  ("Marion McKelvie" <marion@streamlet.co.uk>)
Responses Re: restoring large objects
List pgsql-admin
"Marion McKelvie" <marion@streamlet.co.uk> writes:
> Many thanks - you're right, the references are stored (by the application
> using the database) in a column of type text.

Yuck :-(.  A possible solution is to dump the schema and data separately
(schema in a plain text dump, data in an -Fc or -Ft dump since plain
text doesn't support dumping LOs).  Then manually edit the schema file
to change the column data type to "oid".  Then load.  I honestly am not
sure that this will work cleanly, but it's worth trying --- and if it
doesn't work, please let me know where it goes wrong.

            regards, tom lane

pgsql-admin by date:

Previous
From: Tom Lane
Date:
Subject: Re: Raw devices vs. Filesystems
Next
From: Grega Bremec
Date:
Subject: Re: Raw devices vs. Filesystems