postgresql/src
Michael Paquier c0187869a0 Fix crash when using COLLATE in partition bound expressions
Attempting to use a COLLATE clause with a type that it not collatable in
a partition bound expression could crash the server.  This commit fixes
the code by adding more checks similar to what is done when computing
index or partition attributes by making sure that there is a collation
iff the type is collatable.

Backpatch down to 12, as 7c079d7 introduced this problem.

Reported-by: Alexander Lakhin
Author: Dmitry Dolgov
Discussion: https://postgr.es/m/16325-809194cf742313ab@postgresql.org
Backpatch-through: 12
2020-04-08 15:04:51 +09:00
..
backend Fix crash when using COLLATE in partition bound expressions 2020-04-08 15:04:51 +09:00
bin Allow psql's \g and \gx commands to transiently change \pset options. 2020-04-07 17:46:29 -04:00
common Add checksum helper functions. 2020-04-03 11:52:43 -04:00
fe_utils Add SQL type xid8 to expose FullTransactionId to users. 2020-04-07 12:03:59 +12:00
include Modify various power 2 calculations to use new helper functions 2020-04-08 16:55:03 +12:00
interfaces Allow ecpg to be built stand-alone, allow parallel libpq make 2020-03-31 14:17:32 -04:00
makefiles Remove libpq.rc, use win32ver.rc for libpq 2020-01-15 15:06:12 +01:00
pl Improve user control over truncation of logged bind-parameter values. 2020-04-02 15:04:51 -04:00
port Be more careful about extracting encoding from locale strings on Windows. 2020-03-30 11:14:58 -04:00
template Fix compiler warning for ppoll() on Cygwin 2019-12-22 23:20:00 +01:00
test Fix crash when using COLLATE in partition bound expressions 2020-04-08 15:04:51 +09:00
timezone Require stdint.h 2020-02-21 09:20:32 +01:00
tools Implement waiting for given lsn at transaction start 2020-04-07 23:51:10 +03:00
tutorial Update copyrights for 2020 2020-01-01 12:21:45 -05:00
.gitignore
DEVELOPERS
Makefile Fix partial-build problems introduced by having more generated headers. 2018-04-09 16:42:10 -04:00
Makefile.global.in Add PostgreSQL home page to --help output 2020-02-28 13:12:21 +01:00
Makefile.shlib Add PostgreSQL home page to --help output 2020-02-28 13:12:21 +01:00
nls-global.mk NLS: Fix backend gettext triggers 2019-09-23 09:04:20 +02:00