aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2010-09-07 14:10:30 +0000
committerBruce Momjian <bruce@momjian.us>2010-09-07 14:10:30 +0000
commitc5d94a34fbd732762106b4056823bde6969fdfd8 (patch)
tree42201a301652b989bcf2da542832bd76bc1acac7 /src
parenta756f5ce140914d6b316721f42b43e828820e93e (diff)
downloadpostgresql-c5d94a34fbd732762106b4056823bde6969fdfd8.tar.gz
postgresql-c5d94a34fbd732762106b4056823bde6969fdfd8.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/port/unsetenv.c3
1 files changed, 2 insertions, 1 deletions
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.