[pgsql-jp: 27997] 強制再起動時のタイムゾーンについて

Hideaki Sayama sayama @ vitstage.co.jp
2002年 11月 18日 (月) 11:52:19 JST


佐山と申します。

現在、RedHat Linux7.2 + PostgreSQL 7.2.3を使用しているのですが、
PostgreSQLが何らかの原因で自動再起動となった時に、タイムゾーンの設定が
JapanからUTCになってします現象が発生しています。

postmasterを起動しているユーザの環境変数には、.bashrcで、PGTZ=Japanを設定しており、
psqlでselect current_timestamp();で+09となるのを確認しています。

この現象を防ぐ方法はないでしょうか?

よろしくお願い致します。


以下は再起動時のsyslogです。

Nov 18 10:11:47 db postgres[6608]: [37539-1] NOTICE:  Message from PostgreSQL backend:
Nov 18 10:11:47 db postgres[6608]: [37539-2] ^IThe Postmaster has informed me that some other backend
Nov 18 10:11:47 db postgres[6608]: [37539-3] ^Idied abnormally and possibly corrupted shared memory.
Nov 18 10:11:47 db postgres[6608]: [37539-4] ^II have rolled back the current transaction and am
Nov 18 10:11:47 db postgres[6608]: [37539-5] ^Igoing to terminate your database system connection and exit.
Nov 18 10:11:47 db postgres[6608]: [37539-6] ^IPlease reconnect to the database system and repeat your query.
Nov 18 10:11:47 db postgres[10101]: [17085-1] NOTICE:  Message from PostgreSQL backend:
Nov 18 10:11:47 db postgres[10101]: [17085-2] ^IThe Postmaster has informed me that some other backend
Nov 18 10:11:47 db postgres[10101]: [17085-3] ^Idied abnormally and possibly corrupted shared memory.
Nov 18 10:11:47 db postgres[10101]: [17085-4] ^II have rolled back the current transaction and am
Nov 18 10:11:47 db postgres[10101]: [17085-5] ^Igoing to terminate your database system connection and exit.
Nov 18 10:11:47 db postgres[10101]: [17085-6] ^IPlease reconnect to the database system and repeat your query.
Nov 18 10:11:47 db postgres[11219]: [15996-1] NOTICE:  Message from PostgreSQL backend:
Nov 18 10:11:47 db postgres[11219]: [15996-2] ^IThe Postmaster has informed me that some other backend
Nov 18 10:11:47 db postgres[22489]: [307-1] NOTICE:  Message from PostgreSQL backend:
Nov 18 10:11:47 db postgres[11221]: [16010-2] ^IThe Postmaster has informed me that some other backend
Nov 18 10:11:47 db postgres[11219]: [15996-3] ^Idied abnormally and possibly corrupted shared memory.
Nov 18 10:11:47 db postgres[22489]: [307-2] ^IThe Postmaster has informed me that some other backend
Nov 18 10:11:47 db postgres[11221]: [16010-3] ^Idied abnormally and possibly corrupted shared memory.
Nov 18 10:11:47 db postgres[11219]: [15996-4] ^II have rolled back the current transaction and am
Nov 18 10:11:47 db postgres[22489]: [307-3] ^Idied abnormally and possibly corrupted shared memory.
Nov 18 10:11:47 db postgres[11221]: [16010-4] ^II have rolled back the current transaction and am
Nov 18 10:11:47 db postgres[22399]: [309-4] ^II have rolled back the current transaction and am
Nov 18 10:11:48 db postgres[11219]: [15996-5] ^Igoing to terminate your database system connection and exit.
Nov 18 10:11:48 db postgres[22508]: [308-4] ^II have rolled back the current transaction and am
Nov 18 10:11:48 db postgres[11221]: [16010-5] ^Igoing to terminate your database system connection and exit.
Nov 18 10:11:48 db postgres[22399]: [309-5] ^Igoing to terminate your database system connection and exit.
Nov 18 10:11:48 db postgres[11219]: [15996-6] ^IPlease reconnect to the database system and repeat your query.
Nov 18 10:11:48 db postgres[22489]: [307-5] ^Igoing to terminate your database system connection and exit.
Nov 18 10:11:48 db postgres[22508]: [308-5] ^Igoing to terminate your database system connection and exit.
Nov 18 10:11:48 db postgres[11221]: [16010-6] ^IPlease reconnect to the database system and repeat your query.
Nov 18 01:11:48 db postgres[31253]: [3] DEBUG:  all server processes terminated; reinitializing shared memory and semaphores
Nov 18 01:11:48 db postgres[23030]: [4] DEBUG:  database system was interrupted at 2002-11-18 01:01:45 UTC
Nov 18 01:11:48 db postgres[23030]: [5] DEBUG:  checkpoint record is at 0/CD424C24
Nov 18 01:11:48 db postgres[23030]: [6] DEBUG:  redo record is at 0/CD424C24; undo record is at 0/0; shutdown FALSE
Nov 18 01:11:48 db postgres[23030]: [7] DEBUG:  next transaction id: 4458731; next oid: 2164890
Nov 18 01:11:48 db postgres[23030]: [8] DEBUG:  database system was not properly shut down; automatic recovery in progress
Nov 18 01:11:48 db postgres[23030]: [9] DEBUG:  redo starts at 0/CD424C64
Nov 18 01:11:48 db postgres[23030]: [10] DEBUG:  ReadRecord: record with zero length at 0/CD623550
Nov 18 01:11:48 db postgres[23030]: [11] DEBUG:  redo done at 0/CD62352C
Nov 18 01:11:51 db postgres[23030]: [12] DEBUG:  database system is ready


-- 
Hideaki Sayama <sayama @ vitstage.co.jp>




pgsql-jp メーリングリストの案内