neqjoinsel must now pass through collation to eqjoinsel.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 21 Jul 2020 23:40:44 +0000 (19:40 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 21 Jul 2020 23:41:03 +0000 (19:41 -0400)
commitbd0d893aa7aa303d7f344e267a9d3e53b0219491
tree16fed70e5a23217076002c7d930f360d4c26973c
parent4a70f829d86cb8dbd68f561720e6329f5e818c94
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
src/backend/utils/adt/selfuncs.c