Re: Extensions, patch v18 (merge against master, bitrot-only-fixes) - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Extensions, patch v18 (merge against master, bitrot-only-fixes)
Date
Msg-id 11255.1292530210@sss.pgh.pa.us
Whole thread Raw
In response to Re: Extensions, patch v18 (merge against master, bitrot-only-fixes)  (Dimitri Fontaine <dimitri@2ndQuadrant.fr>)
Responses Re: Extensions, patch v18 (merge against master, bitrot-only-fixes)  (Dimitri Fontaine <dimitri@2ndQuadrant.fr>)
Re: Extensions, patch v18 (merge against master, bitrot-only-fixes)  (Alvaro Herrera <alvherre@commandprompt.com>)
List pgsql-hackers
Dimitri Fontaine <dimitri@2ndQuadrant.fr> writes:
> Alvaro Herrera <alvherre@commandprompt.com> writes:
>> I thought the suggestion of having "version = 9.1devel" line in each
>> contrib's module extension file was a joke.  It is certainly not going
>> to be sustainable in the long run -- I don't think we want to be
>> modifying all control files each release.  We need to find a better way
>> to fix this.

> Naively enough, getting this from the Makefile looked obvious to me.

Putting those numbers in the Makefile instead of the control file surely
does nothing to alleviate Alvaro's maintenance concern.

However, the only way I can see to fix this "automatically" is to have
the makefiles propagate PG_VERSION_NUM (or one of the other values set
by configure) into generated control files.  I don't think that's what
we want either.  If we do that, then people are going to be forced to
go through an ALTER EXTENSION UPGRADE cycle whether or not anything
actually changed in the extension's SQL definitions.  We really only
want the extension's SQL version to change when there was a meaningful
change in the SQL commands.

I'm not sure that I see a better answer than hand-maintained version
numbers in each extension SQL file.  But if that's where we're going,
they should be in the SQL files, not in either the Makefiles or control
files.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Dimitri Fontaine
Date:
Subject: Re: Extensions, patch v18 (merge against master, bitrot-only-fixes)
Next
From: Robert Haas
Date:
Subject: Re: [PATCH] V3: Idle in transaction cancellation