Re: restoring large objects

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: restoring large objects
Дата
Msg-id 6115.1081318077@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: restoring large objects  ("Marion McKelvie" <marion@streamlet.co.uk>)
Ответы Re: restoring large objects  ("Marion McKelvie" <marion@streamlet.co.uk>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Raw devices vs. Filesystems
Следующее
От: Grega Bremec
Дата:
Сообщение: Re: Raw devices vs. Filesystems