]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Assign collations in partition bound expressions.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 28 Sep 2020 18:12:38 +0000 (14:12 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 28 Sep 2020 18:12:38 +0000 (14:12 -0400)
commit72647ac3bf0f11732483eac2cd9b5cf4972f2e1f
tree93ec07545e20e4e33f77e5b2b0e63c5fe0c13d8c
parent2dfa3fea88bc951d0812a18649d801f07964c9b9
Assign collations in partition bound expressions.

Failure to do this can result in errors during evaluation of
the bound expression, as illustrated by the new regression test.

Back-patch to v12 where the ability for partition bounds to be
expressions was added.

Discussion: https://postgr.es/m/CAJV4CdrZ5mKuaEsRSbLf2URQ3h6iMtKD=hik8MaF5WwdmC9uZw@mail.gmail.com
src/backend/parser/parse_utilcmd.c
src/test/regress/expected/create_table.out
src/test/regress/sql/create_table.sql