neqjoinsel must now pass through collation to eqjoinsel.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: bd0d893aa7aa303d7f344e267a9d3e53b0219491
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2020-07-21T23:41:03Z
Releases: 14.0
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

Files

PathChange+/−
src/backend/utils/adt/selfuncs.c modified +9 −6

Discussion