Skip to content

Commit b5ae0d6

Browse files
committed
Mark the TimeZone parameter as GUC_REPORT, so that JDBC can find out
when it changes. Per request from Kris Jurka.
1 parent 80855ba commit b5ae0d6

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

doc/src/sgml/libpq.sgml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/libpq.sgml,v 1.171 2004/12/13 18:05:08 petere Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/libpq.sgml,v 1.172 2004/12/20 18:15:05 tgl Exp $
33
-->
44

55
<chapter id="libpq">
@@ -860,10 +860,11 @@ Parameters reported as of the current release include
860860
<literal>client_encoding</>,
861861
<literal>is_superuser</>,
862862
<literal>session_authorization</>,
863-
<literal>DateStyle</>, and
863+
<literal>DateStyle</>,
864+
<literal>TimeZone</>, and
864865
<literal>integer_datetimes</>.
865-
(<literal>server_encoding</> and <literal>integer_datetimes</> were not
866-
reported by releases before 8.0.)
866+
(<literal>server_encoding</>, <literal>TimeZone</>, and
867+
<literal>integer_datetimes</> were not reported by releases before 8.0.)
867868
Note that
868869
<literal>server_version</>,
869870
<literal>server_encoding</> and

doc/src/sgml/protocol.sgml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/protocol.sgml,v 1.56 2004/12/13 18:05:08 petere Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/protocol.sgml,v 1.57 2004/12/20 18:15:05 tgl Exp $ -->
22

33
<chapter id="protocol">
44
<title>Frontend/Backend Protocol</title>
@@ -1051,10 +1051,11 @@
10511051
<literal>client_encoding</>,
10521052
<literal>is_superuser</>,
10531053
<literal>session_authorization</>,
1054-
<literal>DateStyle</>, and
1054+
<literal>DateStyle</>,
1055+
<literal>TimeZone</>, and
10551056
<literal>integer_datetimes</>.
1056-
(<literal>server_encoding</> and <literal>integer_datetimes</> were not
1057-
reported by releases before 8.0.)
1057+
(<literal>server_encoding</>, <literal>TimeZone</>, and
1058+
<literal>integer_datetimes</> were not reported by releases before 8.0.)
10581059
Note that
10591060
<literal>server_version</>,
10601061
<literal>server_encoding</> and

src/backend/utils/misc/guc.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* Written by Peter Eisentraut <peter_e@gmx.net>.
1111
*
1212
* IDENTIFICATION
13-
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.250 2004/11/24 19:51:03 tgl Exp $
13+
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.251 2004/12/20 18:15:07 tgl Exp $
1414
*
1515
*--------------------------------------------------------------------
1616
*/
@@ -1728,7 +1728,8 @@ static struct config_string ConfigureNamesString[] =
17281728
{
17291729
{"TimeZone", PGC_USERSET, CLIENT_CONN_LOCALE,
17301730
gettext_noop("Sets the time zone for displaying and interpreting time stamps."),
1731-
NULL
1731+
NULL,
1732+
GUC_REPORT
17321733
},
17331734
&timezone_string,
17341735
"UNKNOWN", assign_timezone, show_timezone

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy