Re: pgsql: Fix assorted inconsistencies in GIN opclass support function dec

From: Alexander Korotkov <a(dot)korotkov(at)postgrespro(dot)ru>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-committers <pgsql-committers(at)postgresql(dot)org>
Subject: Re: pgsql: Fix assorted inconsistencies in GIN opclass support function dec
Date: 2016-05-03 08:32:43
Message-ID: CAPpHfdtKmQ=bTgs605TZ5UubEzfTa=c9xNkrHjg-OkOcdkOt4A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

On Tue, May 3, 2016 at 12:09 AM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> Alexander Korotkov <a(dot)korotkov(at)postgrespro(dot)ru> writes:
> > On Wed, Jan 20, 2016 at 6:32 AM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> >> contrib/hstore/hstore--1.3.sql | 12 ++++-----
> >> contrib/intarray/intarray--1.1.sql | 8 +++---
> >> contrib/tsearch2/tsearch2--1.0.sql | 4 +--
>
> > Hmm... Is it correct to change function signatures without extension
> > version bump? pg_upgraded clusters would remain with old version of
> these
> > functions. Once we have instances with same extension version but with
> > different signatures of its functions, there is no correct way to refer
> > these functions in future. I think we should do the version bump in this
> > case.
>
> It doesn't really matter, though, because there simply isn't any need to
> refer to these functions from SQL. They are only useful as opclass
> support functions.
>

What if we'll want to reuse some on these functions in new opclass?
Assumption that we don't need to refer these functions from SQL seems
dangerous to me.
If pg_upgraded instances are OK to leave with old function definitions, why
do we bother about new instances?

------
Alexander Korotkov
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2016-05-03 13:32:18 Re: Re: pgsql: Fix assorted inconsistencies in GIN opclass support function dec
Previous Message Bruce Momjian 2016-05-03 05:24:38 Re: Re: [COMMITTERS] pgsql: Avoid extra locks in GetSnapshotData if old_snapshot_threshold <

Browse pgsql-hackers by date

  From Date Subject
Next Message Dave Page 2016-05-03 09:03:29 Re: Windows 7, Visual Studio 2010: building PgAdmin3
Previous Message Piotr Stefaniak 2016-05-03 08:27:22 Re: Small fix: avoid passing null pointers to memcpy()