Re: unstable postgres on freebsd

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Wes Sheldahl" <wes(dot)sheldahl(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: unstable postgres on freebsd
Date: 2006-10-21 04:12:22
Message-ID: 21285.1161403942@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Wes Sheldahl" <wes(dot)sheldahl(at)gmail(dot)com> writes:
> I seem to have an unstable/unreliable installation of postgresql, and I'm
> not sure how to troubleshoot it.
> Symptoms:
> $ psql postgres
> psql: FATAL: semctl(851974, 3, SETVAL, 0) failed: Invalid argument

AFAICS the only documented reason for that semctl to fail would be if
someone had removed the SysV semaphores that Postgres creates for itself
at startup. Is it possible you've got some script on the loose that
periodically tries to clean out all the semaphores in the system? Try
comparing the output of "ipcs -s" just after starting Postgres with the
output after this symptom appears.

It's probably worth asking if you've seen any other flaky behavior on
this box --- if so I'd kinda wonder about bad RAM or some such.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tobias Brox 2006-10-21 04:22:44 Log-based repliaction?
Previous Message Gregory S. Williamson 2006-10-21 04:08:27 Re: old duplicate emails