Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WLmXd-0006Du-4y for pgsql-bugs@arkaria.postgresql.org; Fri, 07 Mar 2014 04:37:49 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WLmXc-00051U-Lk for pgsql-bugs@arkaria.postgresql.org; Fri, 07 Mar 2014 04:37:48 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WLmXc-00051O-3G for pgsql-bugs@postgresql.org; Fri, 07 Mar 2014 04:37:48 +0000 Received: from mail-lb0-x22b.google.com ([2a00:1450:4010:c04::22b]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WLmXZ-00014r-7t for pgsql-bugs@postgresql.org; Fri, 07 Mar 2014 04:37:47 +0000 Received: by mail-lb0-f171.google.com with SMTP id w7so2407148lbi.2 for ; Thu, 06 Mar 2014 20:37:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=C8ac+q95/svb8NiapKNoyEJ5wNwARGArSo4gCVhvJ2M=; b=K/HlvtjkNXPthtQrm8je4OQwcZ8z22fKD/lrkU+QlTJ5YRLDhdLYX5jQlde3dApdvf hQMz0bscw5QxXntxa/1N3Mujs4CfQ2HALI5E3kpEes3jtLR/sMDgIODceBwDCn4eL8q+ Zo0Am0Nj1Zw6AUx1Ci8HyNPtsO/Iq2SAM/fgG/xem8fK8PWyzEDOYdgmkAmfrFOEz40L miyrlULAlReSlctXEo4gEsY0k4OoUN/cQyEQO1Td8CqmftI6F/6r2i/v6Ka9fDV28c8N /vj+C3fAtKf+an0KPs9Xu2YTx9WlGh+qNmhZv8Bf6yYmKw2OQnDV6PPCmHHc/IVaufQd qUAg== MIME-Version: 1.0 X-Received: by 10.152.6.199 with SMTP id d7mr10546690laa.22.1394167063967; Thu, 06 Mar 2014 20:37:43 -0800 (PST) Received: by 10.114.92.65 with HTTP; Thu, 6 Mar 2014 20:37:43 -0800 (PST) In-Reply-To: <339.1394165896@sss.pgh.pa.us> References: <20140307005623.1918.22473@wrigleys.postgresql.org> <31620.1394163148@sss.pgh.pa.us> <339.1394165896@sss.pgh.pa.us> Date: Thu, 6 Mar 2014 20:37:43 -0800 X-Google-Sender-Auth: BAGnD8xvk9q9GbNkJBiHB0Pd1nQ Message-ID: Subject: Re: BUG #9464: PANIC with 'failed to re-find shared lock object' From: Peter LaDow To: Tom Lane Cc: pgsql-bugs@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On Thu, Mar 6, 2014 at 8:18 PM, Tom Lane wrote: > I don't think _exit() is a terribly good idea. Consider the possibility > that some third-party library loaded into the backend has also established > an atexit callback, and unlike what we did, that code does need to get > control in a subprocess exit. Good point. > Could you try patching atexit_callback as above, and verify that > it does what you want (with or without the on_exit_reset() in your > extension)? That did it as well. Things are peachy (at least for this scenario). Would you like me to submit a patch (with you as the author of course)? Thanks, Pete -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs