本文介绍了土耳其自2016年起继续实行夏令时-对Postgresql的影响的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对Postgresql数据库有什么影响?作业,日期列数据会受到影响吗?

what is impact on Postgresql databases? Jobs ,date columns datas will be affected?

推荐答案

postgresql使用进行时区计算。数据库的2016g版本于2周前发布,,用于处理土耳其的情况。目前,您必须等待PostgreSQL开发人员将最新版本的zoneinfo放入PostgreSQL,然后发布新版本。您可以按以下方式查看postgres对土耳其所在时区的看法:

postgresql uses the zoneinfo database for time zone computations. The database's 2016g version which was released 2 weeks ago, includes an update to handle the situation for Turkey correctly. For now, you'll have to wait for the postgresql developers to pull the latest version of zoneinfo into postgresql and then release a new version. You can check what postgres thinks for Turkey's timezone as follows:

$ SET TIME ZONE 'Asia/Istanbul';
$ SELECT extract(timezone FROM '2016-06-01'::timestamptz), extract(timezone FROM '2016-12-01'::timestamptz);
 date_part | date_part 
-----------+-----------
     10800 |      7200
(1 row)

如您所见,在我的系统上(PostgreSQL 9.5。 4),它仍然认为土耳其将在冬季转换为+2补偿。

As you can see, on my system (postgresql 9.5.4), it still thinks that Turkey will switch to +2 offset in the winter.

这篇关于土耳其自2016年起继续实行夏令时-对Postgresql的影响的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-10 10:57