Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dJgRo-0007VW-1d for pgsql-pkg-debian@arkaria.postgresql.org; Sat, 10 Jun 2017 13:29:00 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dJgRm-00022x-GO for pgsql-pkg-debian@arkaria.postgresql.org; Sat, 10 Jun 2017 13:28:58 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dJgRm-00022k-06 for pgsql-pkg-debian@postgresql.org; Sat, 10 Jun 2017 13:28:58 +0000 Received: from mx.huehner.biz ([52.29.210.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dJgRi-0006jI-BO for pgsql-pkg-debian@postgresql.org; Sat, 10 Jun 2017 13:28:56 +0000 Received: from huehner.biz (huehner.biz [52.28.21.226]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx.huehner.biz (Postfix) with ESMTPSA id 6C07E696B7; Sat, 10 Jun 2017 13:28:55 +0000 (UTC) Received: by huehner.biz (Postfix, from userid 1001) id 641DA61206; Sat, 10 Jun 2017 13:27:47 +0000 (UTC) Date: Sat, 10 Jun 2017 13:27:47 +0000 From: Stefan Huehner To: pgsql-pkg-debian@postgresql.org Cc: stefan.huehner@openbravo.com Subject: pgsql 9.3 for debian/sid in pgdg repo has asserts enabled causing big performance issues Message-ID: <20170610132747.GD11504@huehner.biz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-Mailing-List: pgsql-pkg-debian List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Precedence: bulk Sender: pgsql-pkg-debian-owner@postgresql.org Hello, please CC me on replies as i am not subscribed to the mailing list. In short: The following part from latest changelog: * debian/rules: Add stub to enable cassert builds (disabled by default). does not work in practice as in debian/rules file the #CASSERT_FLAGS := --enable-cassert line is not commented out as it should have been. That causes severe peformance issues at least in our use-case of batch-inserting lots of data with runtime going from ca. 1min to >=6min. Checking with perf shows lots of cpu-cycles spent in AllocSetCheck. Doing local rebuilt of the source package with the assert disabled fixes the performance issue for me. apt-cache policy postgresql-9.3 postgresql-9.3: Installed: 9.3.17-1.pgdg+1 Candidate: 9.3.17-1.pgdg+1 Version table: 9.3.17-1.pgdg+1 500 500 https://apt.postgresql.org/pub/repos/apt sid-pgdg/main amd64 Packages Apart from 9.3 version as mentioned above it seems to affect more versions. I did not check manually but checked pg_config output from postgresql-server-dev packages searching for 'assert' and got the following: for i in `ls /usr/lib/postgresql/`; do echo "Version: $i"; /usr/lib/postgresql/$i/bin/pg_config | grep -c assert; done Version: 10 0 Version: 8.4 0 Version: 9.0 0 Version: 9.1 0 Version: 9.2 1 Version: 9.3 1 Version: 9.4 1 Version: 9.5 1 Version: 9.6 0 So apparently 9.2..9.5 version has that problem as well. Regards, Stefan -- Sent via pgsql-pkg-debian mailing list (pgsql-pkg-debian@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-pkg-debian