]> 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)
commit61a78c71a656593bf4121e624348a990ba5b91da
treeb92bc2d6dcda325611550168d48b4d07605040d1
parentf7873900f353ff210ef2ef2aa587e39196b8bf5a
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