BUG #18372: Timezone documentation and use of TZ and PGTZ environment variables missing since version 7.4

Started by PG Bug reporting formabout 2 years ago2 messagesbugs
Jump to latest
#1PG Bug reporting form
noreply@postgresql.org

The following bug has been logged on the website:

Bug reference: 18372
Logged by: James Gilbert
Email address: jgrg@sanger.ac.uk
PostgreSQL version: Unsupported/Unknown
Operating system: Any
Description:

As far as I can tell, the documentation of the TZ and PGTZ environment
variables read by the PostgreSQL still behaves as described in the
documentation for version 7.4:

https://www.postgresql.org/docs/7.4/datatype-datetime.html#DATATYPE-TIMEZONES

but is absent from more recent versions.

James

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: PG Bug reporting form (#1)
Re: BUG #18372: Timezone documentation and use of TZ and PGTZ environment variables missing since version 7.4

PG Bug reporting form <noreply@postgresql.org> writes:

As far as I can tell, the documentation of the TZ and PGTZ environment
variables read by the PostgreSQL still behaves as described in the
documentation for version 7.4:
https://www.postgresql.org/docs/7.4/datatype-datetime.html#DATATYPE-TIMEZONES
but is absent from more recent versions.

Hm? PGTZ is still mentioned there, assuming I'm looking at the same
spot you are. As for TZ, it's now magic to initdb but not the server,
so the documentation mention moved. See this 9.2-era commit:

https://git.postgresql.org/gitweb/?p=postgresql.git&amp;a=commitdiff&amp;h=ca4af308c32d03db5fbacb54d6e583ceb904f268

regards, tom lane