Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id DFF9EB5DBE3 for ; Tue, 25 Oct 2011 13:22:27 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 10261-08 for ; Tue, 25 Oct 2011 16:22:21 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from exprod7og117.obsmtp.com (exprod7og117.obsmtp.com [64.18.2.6]) by mail.postgresql.org (Postfix) with ESMTP id D310DB5DBE1 for ; Tue, 25 Oct 2011 13:22:20 -0300 (ADT) Received: from mail-fx0-f54.google.com ([209.85.161.54]) (using TLSv1) by exprod7ob117.postini.com ([64.18.6.12]) with SMTP; Tue, 25 Oct 2011 09:22:21 PDT Received: by faar19 with SMTP id r19so1429971faa.27 for ; Tue, 25 Oct 2011 09:22:18 -0700 (PDT) Received: by 10.223.75.15 with SMTP id w15mr21097862faj.9.1319559738427; Tue, 25 Oct 2011 09:22:18 -0700 (PDT) Received: from [192.168.1.183] (dsl-hkibrasgw2-ff7ac300-240.dhcp.inet.fi. [88.195.122.240]) by mx.google.com with ESMTPS id s5sm35654145fab.2.2011.10.25.09.22.16 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 25 Oct 2011 09:22:17 -0700 (PDT) Message-ID: <4EA6E237.5000802@enterprisedb.com> Date: Tue, 25 Oct 2011 19:22:15 +0300 From: Heikki Linnakangas User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; fi-FI; rv:1.9.2.21) Gecko/20110831 Icedove/3.1.13 MIME-Version: 1.0 To: bricklen CC: pgsql-bugs@postgresql.org Subject: Re: auto_explain causes cluster crash if pg_ctl reload is used (not pg_ctl restart) References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201110/236 X-Sequence-Number: 31506 On 25.10.2011 18:42, bricklen wrote: > Tried on both > PostgreSQL 9.0.4 on x86_64-unknown-linux-gnu, compiled by GCC gcc > (GCC) 4.1.2 20080704 (Red Hat 4.1.2-48), 64-bit > and > PostgreSQL 9.0.3 on x86_64-unknown-linux-gnu, compiled by GCC gcc > (GCC) 4.1.2 20080704 (Red Hat 4.1.2-48), 64-bit > > shared_preload_libraries = 'pg_stat_statements,auto_explain' > custom_variable_classes = 'auto_explain' > auto_explain.log_min_duration = '10s' > auto_explain.log_analyze = true > auto_explain.log_buffers = true > > I was testing to see if any of the settings above got applied after > issuing a "pg_ctl reload" rather than a restart, and I was surprised > to see that I could crash my db cluster. I realize that the docs say > to issue a restart, but the crash seems a tad user-unfriendly. > > Any other details I should provide? A backtrace from the core dump would be help a lot. Can you get one? More precise instructions on how to reproduce this would also be nice. -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com