postgresql/contrib/pg_trgm
Alexander Korotkov 5411e82138 Fix arrays comparison in CompareOpclassOptions()
The current code calls array_eq() and does not provide FmgrInfo.  This commit
provides initialization of FmgrInfo and uses C collation as the safe option
for text comparison because we don't know anything about the semantics of
opclass options.

Backpatch to 13, where opclass options were introduced.

Reported-by: Nicolas Maus
Discussion: https://postgr.es/m/18692-72ea398df3ec6712%40postgresql.org
Backpatch-through: 13
2024-11-12 01:54:38 +02:00
..
data
expected Fix arrays comparison in CompareOpclassOptions() 2024-11-12 01:54:38 +02:00
sql Fix arrays comparison in CompareOpclassOptions() 2024-11-12 01:54:38 +02:00
.gitignore
Makefile
pg_trgm--1.0--1.1.sql
pg_trgm--1.1--1.2.sql
pg_trgm--1.2--1.3.sql
pg_trgm--1.3--1.4.sql
pg_trgm--1.3.sql
pg_trgm--1.4--1.5.sql Fix typo in contrib/pg_trgm/pg_trgm--1.4--1.5.sql 2020-11-12 08:55:34 +03:00
pg_trgm.control
trgm_gin.c
trgm_gist.c pg_trgm: fix crash in 2-item picksplit 2020-11-12 14:59:06 +00:00
trgm_op.c
trgm_regexp.c Fix misbehavior in contrib/pg_trgm with an unsatisfiable regex. 2023-03-11 12:15:41 -05:00
trgm.h