Make LC_COLLATE and LC_CTYPE database-level settings. Collation and
Heikki Linnakangas <heikki.linnakangas@iki.fi>
Make LC_COLLATE and LC_CTYPE database-level settings. Collation and ctype are now more like encoding, stored in new datcollate and datctype columns in pg_database. This is a stripped-down version of Radek Strnad's patch, with further changes by me.