public inbox for [email protected]  
help / color / mirror / Atom feed
From: David G. Johnston <[email protected]>
To: [email protected]
To: Pg Docs <[email protected]>
Subject: Re: TIMEZONE names
Date: Sat, 12 Jun 2021 12:49:39 -0700
Message-ID: <CAKFQuwa5HfZjpk3AgkLhVBSe2V5YnRMiZVLCoT0TEc2V9pbqqA@mail.gmail.com> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>

On Sat, Jun 12, 2021, 12:28 PG Doc comments form <[email protected]>
wrote:

> The following documentation comment has been logged on the website:
>
> Page: https://www.postgresql.org/docs/13/datatype-datetime.html
> Description:
>
> The documentation states that some timezone names are recognized.  As far
> as
> I understand others aren't.
>
> This seems to be true:
> $psql postgres -c "set TIMEZONE='bug' ; show timezone;"
> ERROR:  invalid value for parameter "TimeZone": "bug"
> $ echo $?
> 1
>
> However adding a correct numerical offset leads Postgresql to accept a
> non-existing timezone name:
> $ psql postgres -c "set TIMEZONE='bug-1' ; show timezone;"
> $ echo $?
> 0
>

That would be the Appendix B material the documentation is referencing.

David J.

>


reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: TIMEZONE names
  In-Reply-To: <CAKFQuwa5HfZjpk3AgkLhVBSe2V5YnRMiZVLCoT0TEc2V9pbqqA@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox