Re: Extensions, patch v16

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>
Cc: "David E(dot) Wheeler" <david(at)kineticode(dot)com>, David Fetter <david(at)fetter(dot)org>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Dimitri Fontaine <dimitri(at)2ndQuadrant(dot)fr>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Extensions, patch v16
Date: 2010-12-29 20:00:12
Message-ID: 201012292000.oBTK0C506753@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Oleg Bartunov wrote:
> Hi there,
>
> it's clear we need versions, probably, major.minor would be enough. The problem
> I see is how to keep .so in sync with .sql ? Should we store .sql in database ?
>
> Also, we need permissions for extension, since we have open/closed
> extensions.
>

Don't people normally define the version number in the Makefile and pass
the version string into the C code and perhaps a psql variable?

---------------------------------------------------------------------------

>
> Oleg
>
> On Sat, 11 Dec 2010, David E. Wheeler wrote:
>
> > On Dec 11, 2010, at 1:09 PM, David Fetter wrote:
> >
> >>> Why is it in the makefile at all? If the makefile does need to know it,
> >>> why don't we have it scrape the number out of the control file? Or even
> >>> more to the point, since when do we need version numbers in extensions?
> >>
> >> We *absolutely* need version numbers in extensions. People will want
> >> to have a certain version, or a certain minimum version, etc., etc.,
> >> etc., just as they do for any other software.
> >>
> >> Seriously, are you OK?
> >
> > One of the biggest mistakes in the creation of CPAN was allowing modules without extensions. It makes figuring out what to upgrade extremely difficult. Learning from that, PGXN requires version numbers for all extensions.
> >
> > Best,
> >
> > David
> >
> >
> >
>
> Regards,
> Oleg
> _____________________________________________________________
> Oleg Bartunov, Research Scientist, Head of AstroNet (www.astronet.ru),
> Sternberg Astronomical Institute, Moscow University, Russia
> Internet: oleg(at)sai(dot)msu(dot)su, http://www.sai.msu.su/~megera/
> phone: +007(495)939-16-83, +007(495)939-23-83
>
> --
> Sent via pgsql-hackers mailing list (pgsql-hackers(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-hackers

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ It's impossible for everything to be true. +

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2010-12-29 20:00:26 Re: SSI SLRU strategy choices
Previous Message Alvaro Herrera 2010-12-29 19:42:08 Re: and it's not a bunny rabbit, either