summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMagnus Hagander <magnus@hagander.net>2010-04-06 20:35:15 +0000
committerMagnus Hagander <magnus@hagander.net>2010-04-06 20:35:15 +0000
commit0ae9a9d25f9081aa2339448293926630621963a2 (patch)
tree2a94fe2b2bb95ef7bb48dff9765191e9f0f31ab1 /src
parent51cf867c03858516b461967a4cfb1d8524423198 (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 13dbb553d78..83f3b727c76 100644
--- a/src/timezone/pgtz.c
+++ b/src/timezone/pgtz.c
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/timezone/pgtz.c,v 1.58.2.1 2008/07/01 03:41:01 tgl Exp $
+ * $PostgreSQL: pgsql/src/timezone/pgtz.c,v 1.58.2.2 2010/04/06 20:35:15 mha Exp $
*
*-------------------------------------------------------------------------
*/
@@ -1086,7 +1086,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;
}
@@ -1102,7 +1103,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;
}