]> granicus.if.org Git - postgresql/commit
Copy collencoding in CREATE COLLATION / FROM
authorPeter Eisentraut <peter_e@gmx.net>
Fri, 30 Jun 2017 12:50:39 +0000 (08:50 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Fri, 30 Jun 2017 12:50:39 +0000 (08:50 -0400)
commit54baa48139ae6b67347bea6a9183d494e625939b
tree01daab4bc29f542d12c2695e2806010d9f9036fa
parent08aed6604de2e6a9f4d499818d7c641cbf5eb9f7
Copy collencoding in CREATE COLLATION / FROM

This command used to compute the collencoding entry like when a
completely new collation is created.  But for example when copying the
"C" collation, this would then result in a collation that has a
collencoding entry for the current database encoding rather than -1,
thus not making an exact copy.  This has probably no practical impact,
but making this change keeps the catalog contents neat.

Reported-by: Tom Lane <tgl@sss.pgh.pa.us>
src/backend/commands/collationcmds.c