ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] Postgres и перевод часов
@ 2011-10-31  9:17 Alexey Petrakov
  2011-10-31 10:01 ` Nikolay A. Fetisov
  0 siblings, 1 reply; 9+ messages in thread
From: Alexey Petrakov @ 2011-10-31  9:17 UTC (permalink / raw)
  To: ALT Linux Community general discussions

Господа, возникла странная ситуация. Минувшей ночью благополучно не произошёл 
ставший одно время традиционным перевод часов на зимнее время. Благополучно 
везде, кроме сервера postgresql8.4-8.4.7-alt2, который крутится на моей 
машине. А именно, на запросы из серии "select now();" он возвращает время на 
час меньше, чем показывают системные часы на машине.
Некоторое копание показало следующее:
select * from pg_timezone_names where name='Asia/Novosibirsk';
       name       | abbrev | utc_offset | is_dst 
------------------+--------+------------+--------
 Asia/Novosibirsk | NOVT   | 06:00:00   | f

А, должно быть у нас, вроде как, +7 часов.

Другими словами, postgres плевал на данные о часовых поясах, имеющиеся в 
системе и своевременно обновлённые и живёт своей жизнью.

Как с этим быть?


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2011-11-01  5:14 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-31  9:17 [Comm] Postgres и перевод часов Alexey Petrakov
2011-10-31 10:01 ` Nikolay A. Fetisov
2011-10-31 10:25   ` Alexey Petrakov
2011-10-31 20:51   ` Sergey
2011-10-31 20:55     ` Sergey
2011-10-31 21:06       ` Dmitry V. Levin
2011-10-31 21:15         ` Sergey
2011-10-31 21:50           ` Dmitry V. Levin
2011-11-01  5:14     ` Nikolay A. Fetisov

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git