Re: rebellious pg stats collector (reopened case)

From: Laszlo Nagy <gandalf(at)shopzeus(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-admin(at)postgresql(dot)org
Subject: Re: rebellious pg stats collector (reopened case)
Date: 2009-01-08 05:50:25
Message-ID: 49659421.6060000@shopzeus.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-performance

Laszlo Nagy írta:
>
>> alive". Otherwise you'll have trouble with the collector not stopping
>> when you want it to. Look into src/backend/storage/ipc/pmsignal.c:
>>
>> - return (getppid() == PostmasterPid);
>> + return (getppid() != 1);
>>
>> (Obviously this is a hack, but it should work on any Unixish system)
>>
Sorry for coming back so late. I changed this, and reinstalled
postgresql but it won't start. Some messages from the log:

Jan 8 00:40:29 shopzeus postgres[80522]: [3814-1] FATAL: the database
system is in recovery mode
Jan 8 00:40:30 shopzeus postgres[80559]: [3849-1] FATAL: the database
system is in recovery mode
Jan 8 00:40:30 shopzeus postgres[80632]: [3917-1] FATAL: the database
system is in recovery mode
Jan 8 00:40:31 shopzeus postgres[80662]: [3946-1] FATAL: the database
system is in recovery mode
Jan 8 00:40:31 shopzeus postgres[80700]: [3981-1] FATAL: the database
system is in recovery mode
Jan 8 00:40:31 shopzeus postgres[80734]: [4014-1] FATAL: the database
system is in recovery mode
Jan 8 00:40:31 shopzeus postgres[80738]: [4017-1] FATAL: the database
system is in recovery mode
Jan 8 00:40:32 shopzeus postgres[80768]: [4046-1] FATAL: the database
system is in recovery mode
Jan 8 00:40:32 shopzeus postgres[80802]: [4078-1] FATAL: the database
system is in recovery mode
Jan 8 00:40:32 shopzeus postgres[80806]: [4079-1] WARNING: terminating
connection because of crash of another server process
Jan 8 00:40:32 shopzeus postgres[80806]: [4079-2] DETAIL: The
postmaster has commanded this server process to roll back the current
transaction and exit, because another server
Jan 8 00:40:32 shopzeus postgres[80806]: [4079-3] process exited
abnormally and possibly corrupted shared memory.
Jan 8 00:40:32 shopzeus postgres[80806]: [4079-4] HINT: In a moment
you should be able to reconnect to the database and repeat your command.
Jan 8 00:40:32 shopzeus postgres[80835]: [4109-1] FATAL: the database
system is in recovery mode
Jan 8 00:40:32 shopzeus postgres[80837]: [4110-1] FATAL: the database
system is in recovery mode
Jan 8 00:40:33 shopzeus postgres[80870]: [4141-1] FATAL: the database
system is in recovery mode
Jan 8 00:40:33 shopzeus postgres[80900]: [4170-1] FATAL: the database
system is in recovery mode
Jan 8 00:40:34 shopzeus postgres[80938]: [4205-1] FATAL: the database
system is in recovery mode
Jan 8 00:40:34 shopzeus postgres[80967]: [4233-1] FATAL: the database
system is in recovery mode

(I had to reinstall the original version because it will be used today.)

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message A. Kretschmer 2009-01-08 07:50:01 Re: Fail of a return query from plpgsql function for a specific table
Previous Message Bruce Momjian 2009-01-08 03:19:38 Re: ssl-info, enforcing list of common-names

Browse pgsql-performance by date

  From Date Subject
Next Message Stefano Nichele 2009-01-08 08:36:13 Re: understanding postgres issues/bottlenecks
Previous Message M. Edward (Ed) Borasky 2009-01-08 03:11:15 Re: understanding postgres issues/bottlenecks