pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix lquery's behavior for consecutive '*' items.
Date: Sat, 28 Mar 2020 22:31:14 +0000
Message-ID: <E1jIJz0-0003j2-25@gemulon.postgresql.org> (raw)

Fix lquery's behavior for consecutive '*' items.

Something like "*{2}.*{3}" should presumably mean the same as
"*{5}", but it didn't.  Improve that.

Get rid of an undocumented and remarkably ugly (though not, as far as
I can tell, actually unsafe) static variable in favor of passing more
arguments to checkCond().

Reverse-engineer some commentary.  This function, like all of ltree,
is still far short of what I would consider the minimum acceptable
level of internal documentation, but at least now it has more than
zero comments.

Although this certainly seems like a bug fix, people might not
thank us for changing query behavior in stable branches, so
no back-patch.

Nikita Glukhov, with cosmetic improvements by me

Discussion: https://postgr.es/m/CAP_rww=waX2Oo6q+MbMSiZ9ktdj6eaJj0cQzNu=Ry2cCDij5fw@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/9950c8aadf0edd31baec74a729d47d94af636c06

Modified Files
--------------
contrib/ltree/expected/ltree.out |  24 ++++++++
contrib/ltree/lquery_op.c        | 121 +++++++++++++++++++++++++++------------
contrib/ltree/ltree.h            |  19 +++---
contrib/ltree/sql/ltree.sql      |   5 +-
4 files changed, 123 insertions(+), 46 deletions(-)



Message-ID: <E1jIJz0-0003j2-25@gemulon.postgresql.org>
Permalink:  ../E1jIJz0-0003j2-25@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1jIJz0-0003j2-25@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: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Fix lquery's behavior for consecutive '*' items.
  In-Reply-To: <E1jIJz0-0003j2-25@gemulon.postgresql.org>
  References: <E1jIJz0-0003j2-25@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