Account for collation when coercing the output of a SQL function.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 14 Apr 2020 21:30:13 +0000 (17:30 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 14 Apr 2020 21:30:36 +0000 (17:30 -0400)
commit2d59643dbccaf73bc1f90875ea02dcad641379cd
tree6e7f3825a1532e50708ac693e1066e9f5ad0e5ab
parent0516f94d18c57cc5dce72ff8fb84a05d24a67063
Account for collation when coercing the output of a SQL function.

Commit 913bbd88d overlooked that the result of coerce_to_target_type
might need collation fixups.  Per report from Andreas Joseph Krogh.

Discussion: https://postgr.es/m/VisenaEmail.72.37d08ec2b8cb8fb5.17179940cd3@tc7-visena
src/backend/executor/functions.c
src/test/regress/expected/collate.out
src/test/regress/sql/collate.sql