X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 526FCD1B575 for ; Thu, 30 Oct 2003 22:14:51 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 44115-05 for ; Thu, 30 Oct 2003 18:14:21 -0400 (AST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id D54F8D1B510 for ; Thu, 30 Oct 2003 18:14:18 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.10/8.12.10) with ESMTP id h9UMEJit003361; Thu, 30 Oct 2003 17:14:19 -0500 (EST) To: Jeff Boes Cc: pgsql-admin@postgresql.org Subject: Re: Shared memory corrupted? 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> Comments: In-reply-to Jeff Boes message dated "Thu, 30 Oct 2003 13:04:17 -0500" Date: Thu, 30 Oct 2003 17:14:19 -0500 Message-ID: <3360.1067552059@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/378 X-Sequence-Number: 10939 Jeff Boes 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