Re: Upgrading Extension, version numbers (was: Extensions, patch v16)

Поиск
Список
Период
Сортировка
От David E. Wheeler
Тема Re: Upgrading Extension, version numbers (was: Extensions, patch v16)
Дата
Msg-id 3675513E-F09E-4DCC-8C96-4C17128A2084@kineticode.com
обсуждение исходный текст
Ответ на Re: Upgrading Extension, version numbers (was: Extensions, patch v16)  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Upgrading Extension, version numbers (was: Extensions, patch v16)  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Jan 3, 2011, at 11:42 AM, Tom Lane wrote:

> It is, but I don't see any alternative.  As Dimitri said, the .so will
> typically be installed by a packaging system, so we don't have any
> opportunity to run SQL code beforehand.  In any case ...
>
>> The new .so should not be installed until the upgrade is been run.
>
> ... that flat out doesn't work.  If the upgrade script tries to add
> functions that didn't exist in the old .so, it'll fail.

Right, what I'm saying is that `ALTER EXTENSION foo UPGRADE;` should install the .so, too, just before it runs the
upgradescripts. 

Best,

David

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Upgrading Extension, version numbers (was: Extensions, patch v16)
Следующее
От: Joel Jacobson
Дата:
Сообщение: Re: pg_dump --split patch