diff options
author | Magnus Hagander <magnus@hagander.net> | 2010-04-06 20:35:11 +0000 |
---|---|---|
committer | Magnus Hagander <magnus@hagander.net> | 2010-04-06 20:35:11 +0000 |
commit | 26eb0c72ab564d17e72f45b16d8ff42d357986b9 (patch) | |
tree | 1d904b5656e0b08ece05cb5b38e975177a604997 /src | |
parent | 89c500815899b945997d08dc247fb95974b55162 (diff) | |
download | postgresql-26eb0c72ab564d17e72f45b16d8ff42d357986b9.tar.gz postgresql-26eb0c72ab564d17e72f45b16d8ff42d357986b9.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.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/timezone/pgtz.c b/src/timezone/pgtz.c index 54403f4c886..023fd8b9921 100644 --- a/src/timezone/pgtz.c +++ b/src/timezone/pgtz.c @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group * * IDENTIFICATION - * $PostgreSQL: pgsql/src/timezone/pgtz.c,v 1.67 2010/03/12 21:40:36 tgl Exp $ + * $PostgreSQL: pgsql/src/timezone/pgtz.c,v 1.68 2010/04/06 20:35:11 mha Exp $ * *------------------------------------------------------------------------- */ @@ -1091,7 +1091,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; } @@ -1107,7 +1108,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; } |