summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMagnus Hagander <magnus@hagander.net>2010-04-06 20:35:17 +0000
committerMagnus Hagander <magnus@hagander.net>2010-04-06 20:35:17 +0000
commit547e63680b60f4a6f94b07fac57af7ff9422a67c (patch)
treee07553e13a70994864b1b5bc78dda3cf869c4034 /src
parente4404121cdcef180f6bb6f543dc94aeb77b5ce99 (diff)
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 82a02438780..6d0df5dc0cf 100644
--- a/src/timezone/pgtz.c
+++ b/src/timezone/pgtz.c
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/timezone/pgtz.c,v 1.63 2009/06/11 14:49:15 momjian Exp $
+ * $PostgreSQL: pgsql/src/timezone/pgtz.c,v 1.63.2.1 2010/04/06 20:35:17 mha Exp $
*
*-------------------------------------------------------------------------
*/
@@ -1087,7 +1087,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;
}
@@ -1103,7 +1104,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;
}