pgsql: Fix crash when using COLLATE in partition bound expressions

2020-04-07 Thread Michael Paquier
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 attr

pgsql: Fix crash when using COLLATE in partition bound expressions

2020-04-07 Thread Michael Paquier
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 attr