Re: restoring large objects

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Marion McKelvie" <marion(at)streamlet(dot)co(dot)uk>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: restoring large objects
Date: 2004-04-07 06:07:57
Message-ID: 6115.1081318077@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

"Marion McKelvie" <marion(at)streamlet(dot)co(dot)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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Grega Bremec 2004-04-07 07:18:58 Re: Raw devices vs. Filesystems
Previous Message Tom Lane 2004-04-07 05:26:02 Re: Raw devices vs. Filesystems