Re: Extensions, patch v16 - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Extensions, patch v16
Date
Msg-id 28190.1292010424@sss.pgh.pa.us
Whole thread Raw
In response to Re: Extensions, patch v16  (Dimitri Fontaine <dimitri@2ndQuadrant.fr>)
Responses Re: Extensions, patch v16  ("David E. Wheeler" <david@kineticode.com>)
ALTER EXTENSION ... UPGRADE; (was: Extensions, patch v16)  (Dimitri Fontaine <dimitri@2ndQuadrant.fr>)
List pgsql-hackers
Dimitri Fontaine <dimitri@2ndQuadrant.fr> writes:
> Tom Lane <tgl@sss.pgh.pa.us> writes:
>> This doesn't answer my question of why it couldn't be done the other
>> way.  Why does the makefile need to know it?  If it does need to know
>> it, couldn't it get it out of the control file instead of vice versa?

> Well the Makefile support is just a facility to fill in the control file
> automatically for you, on the grounds that you're probably already
> maintaining your version number in the Makefile.

Why would you choose to maintain it in the Makefile?  In most cases
makefiles are the least likely thing to be changing during a minor
update.  I would think that the right place for it is in the C code
(if we're trying to version .so files) or the .sql file, if we're trying
to version the SQL objects.  In particular, if the only reason the
makefile needs to know it is to inject it into the control file, it
seems completely silly to not just maintain it in the control file
instead.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Extensions, patch v16
Next
From: "David E. Wheeler"
Date:
Subject: Re: Extensions, patch v16