pgsql: neqjoinsel must now pass through collation to eqjoinsel.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: neqjoinsel must now pass through collation to eqjoinsel.
Date: 2020-07-21 23:41:22
Message-ID: E1jy1sw-0004yy-JW@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

neqjoinsel must now pass through collation to eqjoinsel.

Since commit 044c99bc5, eqjoinsel passes the passed-in collation
to any operators it invokes. However, neqjoinsel failed to pass
on whatever collation it got, so that if we invoked a
collation-dependent operator via that code path, we'd get "could not
determine which collation to use for string comparison" or the like.

Per report from Justin Pryzby. Back-patch to v12, like the previous
commit.

Discussion: https://postgr.es/m/20200721191606.GL5748@telsasoft.com

Branch
------
master

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

Modified Files
--------------
src/backend/utils/adt/selfuncs.c | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2020-07-22 01:19:10 pgsql: Fix comment in sha2.h
Previous Message Peter Geoghegan 2020-07-21 22:51:42 pgsql: Add nbtree Valgrind buffer lock checks.