Re: here does postgres take its timezone information from? - Mailing list pgsql-general

From Palle Girgensohn
Subject Re: here does postgres take its timezone information from?
Date
Msg-id E8B887D2-D5A8-4217-ADD6-A7AC0BDF8750@pingpong.net
Whole thread Raw
In response to Re: here does postgres take its timezone information from?  (Thomas Munro <thomas.munro@gmail.com>)
Responses Re: here does postgres take its timezone information from?
Re: here does postgres take its timezone information from?
List pgsql-general

> 6 nov. 2019 kl. 03:03 skrev Thomas Munro <thomas.munro@gmail.com>:
>
> On Wed, Nov 6, 2019 at 2:20 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Thomas Munro <thomas.munro@gmail.com> writes:
>>> On Wed, Nov 6, 2019 at 12:02 PM Adrian Klaver <adrian.klaver@aklaver.com> wrote:
>>>> On 11/5/19 3:00 PM, Chris Withers wrote:
>>>>> Hmm. Is there any option to use the system timezone packages?
>>
>>>> --with-system-tzdata=DIRECTORY
>>
>>> I hope that most distributions do that*, because otherwise you
>>> could finish up with lots of out-of-sync copies of the tzdata database
>>> inside your database, your JVM, your libc, etc etc, and you want a
>>> single source of truth for that stuff.
>>
>> Right.  Our recommendation is to use --with-system-tzdata if you're on
>> a platform where the vendor updates their copy of tzdata regularly.
>> The fact that we supply a copy of tzdata at all is really just a fallback
>> for folks on poorly-supported platforms.  (Naming no names here ...)
>
> Incidentally, that's also why I don't want to give up on libc
> collations quite as easily as some, despite their limitations.  It
> should be possible to get all the software on your system to agree on
> the ordering of two strings and the current time!
>
>>> *It looks like FreeBSD's port uses the copy of tzdata from the
>>> PostgreSQL source tree by default and thus that is what you get if you
>>> install PostgreSQL with "pkg".  That's not a great default IMHO and
>>> should be changed.
>>
>> Ugh.  Who can we poke there?
>
> Maybe Palle?  (CCed).


Hi,

The decision to use postgresql's tzdata is quite old. It was based on the assumption that postgres is updated more
frequentlythan the operating system, and that for that reason it was better to use postgresql's tzdata, since it would
bemore accurate more often. This is probably not true anymore, so I agree it should probably be changed to
default=system-tzdataon FreeBSD. 

I will commit an upgrade in Thursday, and unless anybody raise their voice against it, I will change the default
settingthen. 

Regards,
Palle






pgsql-general by date:

Previous
From: Christoph Moench-Tegeder
Date:
Subject: Re: security on user for replication
Next
From: DrakoRod
Date:
Subject: DELETE Query Hang