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 default signature length for gist_ltree_ops
Date: Wed, 16 Mar 2022 09:03:28 +0000
Message-ID: <E1nUPZ1-000ISx-Nr@gemulon.postgresql.org> (raw)

Fix default signature length for gist_ltree_ops

911e702077 implemented operator class parameters including the signature length
in ltree.  Previously, the signature length for gist_ltree_ops was 8.  Because
of bug 911e702077 the default signature length for gist_ltree_ops became 28 for
ltree 1.1 (where options method is NOT provided) and 8 for ltree 1.2 (where
options method is provided).  This commit changes the default signature length
for ltree 1.1 to 8.

Existing gist_ltree_ops indexes might be corrupted in various scenarios.
Thus, we have to recommend reindexing all the gist_ltree_ops indexes after
the upgrade.

Reported-by: Victor Yegorov
Reviewed-by: Tomas Vondra, Tom Lane, Andres Freund, Nikita Glukhov
Reviewed-by: Andrew Dunstan
Author: Tomas Vondra, Alexander Korotkov
Discussion: https://postgr.es/m/17406-71e02820ae79bb40%40postgresql.org
Discussion: https://postgr.es/m/d80e0a55-6c3e-5b26-53e3-3c4f973f737c%40enterprisedb.com

Branch
------
REL_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/bad202c615c9f4ad41be18aa7d9ffe41ebfb86fa

Modified Files
--------------
contrib/ltree/ltree.h      |  8 +++++---
contrib/ltree/ltree_gist.c | 12 ++++++------
2 files changed, 11 insertions(+), 9 deletions(-)



view thread (3+ messages)

Message-ID: <E1nUPZ1-000ISx-Nr@gemulon.postgresql.org>
Permalink:  ../E1nUPZ1-000ISx-Nr@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1nUPZ1-000ISx-Nr@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 default signature length for gist_ltree_ops
  In-Reply-To: <E1nUPZ1-000ISx-Nr@gemulon.postgresql.org>
  References: <E1nUPZ1-000ISx-Nr@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