Copy collencoding in CREATE COLLATION / FROM

Peter Eisentraut <peter_e@gmx.net>

Commit: 54baa48139ae6b67347bea6a9183d494e625939b
Author: Peter Eisentraut <peter_e@gmx.net>
Date: 2017-06-30T12:50:39Z
Releases: 10.0
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>

Files

PathChange+/−
src/backend/commands/collationcmds.c modified +10 −6