From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jeff Boes <jboes@nexcerpt.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Shared memory corrupted?
Date: Thu, 30 Oct 2003 17:14:19 -0500
Message-ID: <3360.1067552059@sss.pgh.pa.us> (raw)
In-Reply-To: <3FA152A1.8070405@nexcerpt.com>
References: <376b4b69d70843afaa9af64ec731886f@news.teranews.com>
<28437.1067529222@sss.pgh.pa.us>
<3FA13741.4060701@nexcerpt.com>
<1321.1067536356@sss.pgh.pa.us>
<3FA152A1.8070405@nexcerpt.com>
Jeff Boes <jboes@nexcerpt.com> writes:
> [How would a plperl function that changes the local behavior of SIGALRM
> affect the backend?]
IIRC, SIGALRM is used for two things: one, to trigger a deadlock check
cycle if we wait too long for a lock (see deadlock_timeout), and two,
to implement statement_timeout. If you are using statement_timeout then
I think it would be dangerous to mess with SIGALRM at all. If you are
not, then I think it would be all right to modify the SIGALRM handler
setting locally, as long as you restore it to its original setting when
you are done. Don't try to run any database access operations while you
have a nonstandard setting of the SIGALRM handler, though, or you risk
problems with deadlock checking.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, jboes@nexcerpt.com
Subject: Re: Shared memory corrupted?
In-Reply-To: <3360.1067552059@sss.pgh.pa.us>
References: <376b4b69d70843afaa9af64ec731886f@news.teranews.com> <28437.1067529222@sss.pgh.pa.us> <3FA13741.4060701@nexcerpt.com> <1321.1067536356@sss.pgh.pa.us> <3FA152A1.8070405@nexcerpt.com> <3360.1067552059@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox