Re: [HACKERS] pg_dump/restore to convert BLOBs to LZTEXT (optional!)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] pg_dump/restore to convert BLOBs to LZTEXT (optional!)
Дата
Msg-id 28080.965351453@sss.pgh.pa.us
обсуждение исходный текст
Ответ на pg_dump/restore to convert BLOBs to LZTEXT (optional!)  (Philip Warner <pjw@rhyme.com.au>)
Ответы Re: [HACKERS] pg_dump/restore to convert BLOBs to LZTEXT (optional!)  (Philip Warner <pjw@rhyme.com.au>)
Список pgsql-general
Philip Warner <pjw@rhyme.com.au> writes:
> For BLOBS that are referenced in more than one table, this will duplicate
> the text which may be a problem,

As well as break the semantics: if you have a multiply-referenced BLOB
then you can update it through any reference and the changes are visible
through all the references.  Not so after you convert the data into
non-BLOB values.

Another problem is that even if you manage to restructure the database
properly, you can't do anything to help with conversion of the
application code that talks to the database (not even the functions
and triggers/rules that may appear right in the database).

AFAICS converting from BLOB to TOAST storage is going to require a
fair amount of actual thought and work on the part of the DB
programmer/admin.  I don't see that pg_dump can help meaningfully,
and I'd just as soon resist feature bloat in pg_dump.

            regards, tom lane

В списке pgsql-general по дате отправления:

Предыдущее
От: Philip Warner
Дата:
Сообщение: pg_dump/restore to convert BLOBs to LZTEXT (optional!)
Следующее
От: Philip Warner
Дата:
Сообщение: Re: [HACKERS] pg_dump/restore to convert BLOBs to LZTEXT (optional!)