Re: REVIEW: Extensions support for pg_dump

Поиск
Список
Период
Сортировка
От Anssi Kääriäinen
Тема Re: REVIEW: Extensions support for pg_dump
Дата
Msg-id 4D35673C.1080900@thl.fi
обсуждение исходный текст
Ответ на Re: REVIEW: Extensions support for pg_dump  (Dimitri Fontaine <dimitri@2ndQuadrant.fr>)
Ответы Re: REVIEW: Extensions support for pg_dump  (Anssi Kääriäinen <anssi.kaariainen@thl.fi>)
Re: REVIEW: Extensions support for pg_dump  (Dimitri Fontaine <dimitri@2ndQuadrant.fr>)
Список pgsql-hackers
On 01/18/2011 11:42 AM, Dimitri Fontaine wrote:
> I've fixed the case by having the code remember the function's extension
> if any, and restore it along with the other dependencies.
The only question here is should CREATE OR REPLACE be allowed. I just 
realized this could present a new problem. If I am not mistaken, when 
loading from dump, you suddenly get the extension's version back, not 
the one you defined in CREATE OR REPLACE. If this is the case, this 
should NOT be allowed. And by the same reasoning, ALTER FUNCTION 
[anything] should not be allowed either. Or at least then the 
function/(or any object for that matter) should be restored somehow from 
the backup, not from the extension files.

I still haven't had the time to start pg_dump reviewing, so I haven't 
verified if this is really a problem. But I suspect so...
 - Anssi


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

Предыдущее
От: tv@fuzzy.cz
Дата:
Сообщение: Re: estimating # of distinct values
Следующее
От: Fujii Masao
Дата:
Сообщение: Re: Replication logging