pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alexander Korotkov <akorotkov@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix handling of non-key columns get_index_column_opclass()
Date: Mon, 09 Sep 2019 11:04:27 +0000
Message-ID: <E1i7HT9-0008Ho-18@gemulon.postgresql.org> (raw)

Fix handling of non-key columns get_index_column_opclass()

f2e40380 introduces support of non-key attributes in GiST indexes.  Then if
get_index_column_opclass() is asked by gistproperty() to get an opclass of
non-key column, it returns garbage past oidvector value.  This commit fixes
that by making get_index_column_opclass() return InvalidOid in this case.

Discussion: https://postgr.es/m/20190902231948.GA5343%40alvherre.pgsql
Author: Nikita Glukhov, Alexander Korotkov
Backpatch-through: 12

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/7e04160390464cd39690d36054e0ac5e4f1bf227

Modified Files
--------------
src/backend/utils/cache/lsyscache.c | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)



view thread (2+ messages)  latest in thread

Message-ID: <E1i7HT9-0008Ho-18@gemulon.postgresql.org>
Permalink:  ../E1i7HT9-0008Ho-18@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1i7HT9-0008Ho-18@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: akorotkov@postgresql.org
  Subject: Re: pgsql: Fix handling of non-key columns get_index_column_opclass()
  In-Reply-To: <E1i7HT9-0008Ho-18@gemulon.postgresql.org>
  References: <E1i7HT9-0008Ho-18@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox