Re: pgsql 9.3 for debian/sid in pgdg repo has asserts enabled causing big performance issues

From: Andres Freund <andres(at)anarazel(dot)de>
To: Christoph Berg <myon(at)debian(dot)org>, Stefan Huehner <stefan(at)huehner(dot)org>, pgsql-pkg-debian(at)postgresql(dot)org, stefan(dot)huehner(at)openbravo(dot)com
Subject: Re: pgsql 9.3 for debian/sid in pgdg repo has asserts enabled causing big performance issues
Date: 2017-06-10 23:33:30
Message-ID: 20170610233330.4vadtntqorscxgtv@alap3.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-pkg-debian

On 2017-06-10 22:21:02 +0200, Christoph Berg wrote:
> Re: Stefan Huehner 2017-06-10 <20170610132747(dot)GD11504(at)huehner(dot)biz>
> > 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.
>
> Hi,
>
> I'm sorry for not properly announcing and documenting this recent
> change properly, we should put a note on the wiki page.
>
> What's happening is that in git the line is indeed commented out, but
> then the apt.postgresql.org build scripts will activate the line when
> building for sid-pgdg (which is the whole point why that stub logic
> got introduced). The idea is that one of the distributions on
> apt.postgresql.org should have cassert enabled so the testsuites
> exercise more test cases, for the server packages as well as for
> extension packages. As sid is Debian's development branch, it made
> sense to enable cassert there.

FWIW, I think that's a seriously bad default. We want people to be able
to do performance tests on sid too, and that's just about impossible
with cassert enabled builds. Besides that, there's plenty people using
sid as their daily driver, while still actually using postgres in some
way.

- Andres

In response to

Browse pgsql-pkg-debian by date

  From Date Subject
Next Message Ryan Taylor 2017-06-15 03:25:59 Missing Postgis.control
Previous Message Stefan Huehner 2017-06-10 23:15:21 Re: pgsql 9.3 for debian/sid in pgdg repo has asserts enabled causing big performance issues