Re: Hypothetical indexes using BRIN broken since pg10

From: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
To: Julien Rouhaud <rjuju123(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Heikki Linnakangas <hlinnaka(at)iki(dot)fi>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Hypothetical indexes using BRIN broken since pg10
Date: 2019-09-24 21:53:25
Message-ID: 20190924215325.GA17541@alvherre.pgsql
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 2019-Sep-24, Julien Rouhaud wrote:

> On Mon, Sep 9, 2019 at 5:03 PM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> > Whether we should bother back-patching a less capable stopgap fix
> > is unclear to me. Yeah, it's a bug that an index adviser can't
> > try a hypothetical BRIN index; but given that nobody noticed till
> > now, it doesn't seem like there's much field demand for it.
> > And I'm not sure that extension authors would want to deal with
> > testing minor-release versions to see if the fix is in, so
> > even if there were a back-patch, it might go unused.
>
> FWIW I maintain such an extension and testing for minor release
> version is definitely not a problem.

I think the danger is what happens if a version of your plugin that was
compiled with the older definition runs in a Postgres which has been
recompiled with the new code. This has happened to me with previous
unnoticed ABI breaks, and it has resulted in crashes in production
systems. It's not a nice situation to be in.

If the break is benign, i.e. "nothing happens", then it's possibly a
worthwhile change to consider. I suppose the only way to know is to
write patches for both sides and try it out.

--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2019-09-24 21:57:44 Re: [bug fix??] Fishy code in tts_cirtual_copyslot()
Previous Message Peter Eisentraut 2019-09-24 21:52:48 Re: PostgreSQL12 and older versions of OpenSSL