diff options
author | Michael Paquier <michael@paquier.xyz> | 2020-04-08 15:04:51 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2020-04-08 15:04:51 +0900 |
commit | c0187869a0f6eb05135d388462522a593ced1b88 (patch) | |
tree | 2b1dca68b6114207671033836266f4c2874b2a08 /src/backend/utils/adt/arrayfuncs.c | |
parent | d025cf88ba5a64487ee4a17ef23e8f55b1536606 (diff) | |
download | postgresql-c0187869a0f6eb05135d388462522a593ced1b88.tar.gz postgresql-c0187869a0f6eb05135d388462522a593ced1b88.zip |
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
Diffstat (limited to 'src/backend/utils/adt/arrayfuncs.c')
0 files changed, 0 insertions, 0 deletions