aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMagnus Hagander <magnus@hagander.net>2010-04-06 20:35:13 +0000
committerMagnus Hagander <magnus@hagander.net>2010-04-06 20:35:13 +0000
commit346dd12c9fce013b03fa8f1648a31042151d0459 (patch)
tree962264ee99c294fee9bf6573be0747db1c21ef36 /src
parentcefc04c24f42300b7a001fb6a0f773eb8d21f514 (diff)
downloadpostgresql-346dd12c9fce013b03fa8f1648a31042151d0459.tar.gz
postgresql-346dd12c9fce013b03fa8f1648a31042151d0459.zip
Log the actual timezone name that we fail to look up the values for in
case the registry data doesn't follow the format we expect, to facilitate debugging.
Diffstat (limited to 'src')
-rw-r--r--src/timezone/pgtz.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/timezone/pgtz.c b/src/timezone/pgtz.c
index d1754d623a3..7fddb3bcc6a 100644
--- a/src/timezone/pgtz.c
+++ b/src/timezone/pgtz.c
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/timezone/pgtz.c,v 1.48.2.2 2008/07/01 03:41:10 tgl Exp $
+ * $PostgreSQL: pgsql/src/timezone/pgtz.c,v 1.48.2.3 2010/04/06 20:35:13 mha Exp $
*
*-------------------------------------------------------------------------
*/
@@ -1073,7 +1073,8 @@ identify_system_timezone(void)
if ((r = RegQueryValueEx(key, "Std", NULL, NULL, zonename, &namesize)) != ERROR_SUCCESS)
{
ereport(WARNING,
- (errmsg_internal("could not query value for 'std' to identify Windows timezone: %i", (int) r)));
+ (errmsg_internal("could not query value for 'std' to identify Windows timezone \"%s\": %i",
+ keyname, (int) r)));
RegCloseKey(key);
break;
}
@@ -1089,7 +1090,8 @@ identify_system_timezone(void)
if ((r = RegQueryValueEx(key, "Dlt", NULL, NULL, zonename, &namesize)) != ERROR_SUCCESS)
{
ereport(WARNING,
- (errmsg_internal("could not query value for 'dlt' to identify Windows timezone: %i", (int) r)));
+ (errmsg_internal("could not query value for 'dlt' to identify Windows timezone \"%s\": %i",
+ keyname, (int) r)));
RegCloseKey(key);
break;
}