postgresql/contrib/pg_trgm
Alexander Korotkov b242aba026 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:53:40 +02:00
..
data
expected Fix arrays comparison in CompareOpclassOptions() 2024-11-12 01:53:40 +02:00
sql Fix arrays comparison in CompareOpclassOptions() 2024-11-12 01:53:40 +02:00
.gitignore
Makefile Handle equality operator in contrib/pg_trgm 2020-11-15 08:52:35 +03:00
meson.build Update copyright for 2023 2023-01-02 15:00:37 -05:00
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
pg_trgm--1.5--1.6.sql Handle equality operator in contrib/pg_trgm 2020-11-15 08:52:35 +03:00
pg_trgm.control Handle equality operator in contrib/pg_trgm 2020-11-15 08:52:35 +03:00
trgm_gin.c New header varatt.h split off from postgres.h 2023-01-10 05:54:36 +01:00
trgm_gist.c Remove useless casts to (void *) in arguments of some system functions 2023-02-07 06:57:59 +01:00
trgm_op.c Remove useless casts to (void *) in arguments of some system functions 2023-02-07 06:57:59 +01:00
trgm_regexp.c Update contrib/trgm_regexp's memory management. 2023-04-08 22:09:17 +12:00
trgm.h Introduce t_isalnum() to replace t_isalpha() || t_isdigit() tests. 2022-10-06 11:08:56 -04:00