Re: Upgrading Extension, version numbers (was: Extensions, patch v16) - Mailing list pgsql-hackers

From David E. Wheeler
Subject Re: Upgrading Extension, version numbers (was: Extensions, patch v16)
Date
Msg-id 3675513E-F09E-4DCC-8C96-4C17128A2084@kineticode.com
Whole thread Raw
In response to Re: Upgrading Extension, version numbers (was: Extensions, patch v16)  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Upgrading Extension, version numbers (was: Extensions, patch v16)  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: Upgrading Extension, version numbers (was: Extensions, patch v16)
Next
From: Joel Jacobson
Date:
Subject: Re: pg_dump --split patch