pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Add missing check_collation_set call to bpcharne(). 2+ messages / 1 participants [nested] [flat]
* pgsql: Add missing check_collation_set call to bpcharne(). @ 2019-11-13 20:54 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 2+ messages in thread From: Tom Lane @ 2019-11-13 20:54 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Add missing check_collation_set call to bpcharne(). We should throw an error for indeterminate collation, but bpcharne() was missing that logic, resulting in a much less user-friendly error (either an assertion failure or "cache lookup failed for collation 0"). Per report from Manuel Rigger. Back-patch to v12 where the mistake came in, evidently in commit 5e1963fb7. (Before non-deterministic collations, this function wasn't collation sensitive.) Discussion: https://postgr.es/m/CA+u7OA4HOjtymxAbuGNh4-X_2R0Lw5n01tzvP8E5-i-2gQXYWA@mail.gmail.com Branch ------ REL_12_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/5a6eea0926f4b732a803149a6c169b1f79993fa9 Modified Files -------------- src/backend/utils/adt/varchar.c | 2 ++ 1 file changed, 2 insertions(+) ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Add missing check_collation_set call to bpcharne(). @ 2019-11-13 20:54 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 2+ messages in thread From: Tom Lane @ 2019-11-13 20:54 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Add missing check_collation_set call to bpcharne(). We should throw an error for indeterminate collation, but bpcharne() was missing that logic, resulting in a much less user-friendly error (either an assertion failure or "cache lookup failed for collation 0"). Per report from Manuel Rigger. Back-patch to v12 where the mistake came in, evidently in commit 5e1963fb7. (Before non-deterministic collations, this function wasn't collation sensitive.) Discussion: https://postgr.es/m/CA+u7OA4HOjtymxAbuGNh4-X_2R0Lw5n01tzvP8E5-i-2gQXYWA@mail.gmail.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/d57d61533a2b5b27b60cc9024c54688390871bf6 Modified Files -------------- src/backend/utils/adt/varchar.c | 2 ++ 1 file changed, 2 insertions(+) ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2019-11-13 20:54 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2019-11-13 20:54 pgsql: Add missing check_collation_set call to bpcharne(). Tom Lane <tgl@sss.pgh.pa.us> 2019-11-13 20:54 pgsql: Add missing check_collation_set call to bpcharne(). Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox