From c5d94a34fbd732762106b4056823bde6969fdfd8 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Tue, 7 Sep 2010 14:10:30 +0000 Subject: Modify pg_upgrade to set/restore all environment variables related to collation/encoding to match English when reading controldata. This now matches the English variable setting used by pg_regress.c. Backpatch to 9.0.X. --- src/port/unsetenv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/port/unsetenv.c b/src/port/unsetenv.c index df8bda56336..21101236941 100644 --- a/src/port/unsetenv.c +++ b/src/port/unsetenv.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/port/unsetenv.c,v 1.11 2010/01/02 16:58:13 momjian Exp $ + * $PostgreSQL: pgsql/src/port/unsetenv.c,v 1.12 2010/09/07 14:10:30 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -32,6 +32,7 @@ unsetenv(const char *name) * implementations (notably recent BSDs) that do not obey SUS but copy the * presented string. This method fails on such platforms. Hopefully all * such platforms have unsetenv() and thus won't be using this hack. + * See: http://www.greenend.org.uk/rjk/2008/putenv.html * * Note that repeatedly setting and unsetting a var using this code will * leak memory. -- cgit v1.2.3