From: "Nikolay A. Fetisov" <naf@naf.net.ru> To: community@lists.altlinux.org Subject: Re: [Comm] Postgres и перевод часов Date: Tue, 01 Nov 2011 09:14:24 +0400 Message-ID: <1320124466.11950.26.camel@v3405.naf.net.ru> (raw) In-Reply-To: <201111010051.06507.a_s_y@sama.ru> В Втр, 01/11/2011 в 00:51 +0400, Sergey пишет: > On Monday 31 October 2011, Nikolay A. Fetisov wrote: > > > Но: PosgresSQL из M40 вылечить мне пока не удалось. > > "Выстрел на удачу": PosgreSQL не в chroot там ? В chroot; в M40 и ручки по вытаскиванию его оттуда не было ещё. > /var/lib/pgsql-root/etc/localtime есть ? > > update_chrooted all ? Это было бы слишком просто. update_chrooted там отрабатывается при перезапуске PostgreSQL вполне нормально: # date Tue Nov 1 08:28:54 MSK 2011 # md5sum /etc/localtime /usr/share/pgsql/timezone/Europe/Moscow \ /var/lib/pgsql-root/etc/localtime /var/lib/pgsql-root/usr/share/pgsql/timezone/Europe/Moscow 200ae8a915612559d032d7787dc9b4f4 /etc/localtime 200ae8a915612559d032d7787dc9b4f4 /usr/share/pgsql/timezone/Europe/Moscow 200ae8a915612559d032d7787dc9b4f4 /var/lib/pgsql-root/etc/localtime 200ae8a915612559d032d7787dc9b4f4 /var/lib/pgsql-root/usr/share/pgsql/timezone/Europe/Moscow # echo 'select now()' | psql -U postgres now ------------------------------- 2011-11-01 07:31:49.194776+03 (1 row) Вылечилось установкой glibc-timezones и полной заменой всего содержимого /usr/share/pgsql/timezone/ . После чего обнаружилось, что там в PostgreSQL стоит совсем не Europe/Moscow: # echo "SHOW TIMEZONE;" | psql -U postgres TimeZone ---------- W-SU (1 row) Причём, по-моему, это какое-то умолчание; сильно сомневаюсь, что такое там кто-либо руками ставил. > Заодно syslog-у поможет: > https://bugzilla.altlinux.org/26534 > А за это спасибо. -- С уважением, Николай Фетисов
prev parent reply other threads:[~2011-11-01 5:14 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2011-10-31 9:17 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 [this message]
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1320124466.11950.26.camel@v3405.naf.net.ru \ --to=naf@naf.net.ru \ --cc=community@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
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