Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UNnhL-0007a2-4q for pgsql-bugs@arkaria.postgresql.org; Thu, 04 Apr 2013 17:11:39 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UNnhK-0007wR-HL for pgsql-bugs@arkaria.postgresql.org; Thu, 04 Apr 2013 17:11:38 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UNnhJ-0007uh-Au for pgsql-bugs@postgresql.org; Thu, 04 Apr 2013 17:11:37 +0000 Received: from smtp-outbound-2.vmware.com ([208.91.2.13]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UNnhG-0003HX-1A for pgsql-bugs@postgresql.org; Thu, 04 Apr 2013 17:11:35 +0000 Received: from sc9-mailhost2.vmware.com (sc9-mailhost2.vmware.com [10.113.161.72]) by smtp-outbound-2.vmware.com (Postfix) with ESMTP id C26F92884D for ; Thu, 4 Apr 2013 10:11:32 -0700 (PDT) Received: from zcs-prod-ext-mta-2.vmware.com (zcs-prod-ext-mta-2.vmware.com [10.113.62.224]) by sc9-mailhost2.vmware.com (Postfix) with ESMTP id BFFECB0767 for ; Thu, 4 Apr 2013 10:11:32 -0700 (PDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by zcs-prod-ext-mta-2.vmware.com (Postfix) with ESMTP id 0F00FC156A for ; Thu, 4 Apr 2013 10:11:30 -0700 (PDT) X-Virus-Scanned: amavisd-new at zcs-prod-ext-mta-2.vmware.com Received: from zcs-prod-ext-mta-2.vmware.com ([127.0.0.1]) by localhost (zcs-prod-ext-mta-2.vmware.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fyiZcpI7GDNv for ; Thu, 4 Apr 2013 10:11:29 -0700 (PDT) Received: from zcs-prod-ext-mta-2.vmware.com (localhost.localdomain [127.0.0.1]) by zcs-prod-ext-mta-2.vmware.com (Postfix) with ESMTP id DCB86C152E for ; Thu, 4 Apr 2013 10:11:29 -0700 (PDT) Received: from [192.168.1.90] (zimbra-prod-ext-proxy-vip.vmware.com [10.113.63.87]) by zcs-prod-ext-mta-2.vmware.com (Postfix) with ESMTPSA for ; Thu, 4 Apr 2013 10:11:29 -0700 (PDT) Message-ID: <515DB441.3050506@vmware.com> Date: Thu, 04 Apr 2013 20:11:29 +0300 From: Heikki Linnakangas Organization: VMware User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130116 Icedove/10.0.12 MIME-Version: 1.0 To: Pg Bugs Subject: pg_stat_statements doesn't work with --disable-spinlocks Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -9.3 (---------) 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 pg_stat_statements (re-)initializes spinlocks as part of normal operation. With --disable-spinlock, spinlocks are implemented using semaphores, and semaphores are expected to be created at postmaster startup. Hence, you get an assertion failure: postgres=# select * from pg_stat_statements ; The connection to the server was lost. Attempting reset: Failed. !> TRAP: FailedAssertion("!(!IsUnderPostmaster)", File: "pg_sema.c", Line: 326) Even if that worked, re-initializing a spinlock with SpinLockInit, like pg_stat_statement does, would always allocate a new semaphore, so you would run out very quickly. - Heikki -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs