Skip site navigation (1) Skip section navigation (2)

pgsql: Be more wary in initdb's creation of platform-dependentcollatio

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Be more wary in initdb's creation of platform-dependentcollatio
Date: 2011-05-10 16:09:11
Message-ID: E1QJpUl-0003PF-Nl@gemulon.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Be more wary in initdb's creation of platform-dependent collations.

Discard any collation aliases that match the built-in pg_collation entries
(ie, "default", "C", "POSIX").  Such aliases would be refused by a CREATE
COLLATION command, but since initdb is injecting them via a simple INSERT,
it has to make the corresponding check for itself.  Per Martin Pitt's
report of funny behavior in a machine that had a bogus "C.UTF-8" locale.

Also, use E'' syntax for the output of escape_quotes, as per its header
comment.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/853c1750f91feaa6a72b29ae683c955ab6f4df70

Modified Files
--------------
src/bin/initdb/initdb.c |   25 ++++++++++++++++---------
1 files changed, 16 insertions(+), 9 deletions(-)

pgsql-committers by date

Next:From: Tom LaneDate: 2011-05-10 17:49:20
Subject: pgsql: Adjust documentation with respect to "unknown" timezonesetting.
Previous:From: Bruce MomjianDate: 2011-05-10 14:43:12
Subject: pgsql: In pg_upgrade,remove suggestion of setting pg_hba.conf to 'trus

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group