pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Steven Flatt <steven.flatt@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Alvaro Herrera <alvherre@commandprompt.com>
Cc: Steinar H. Gunderson <sgunderson@bigfoot.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: performance drop on 8.2.4, reverting to 8.1.4
Date: Tue, 12 Jun 2007 14:31:01 -0400
Message-ID: <357fa7590706121131t5adf3795ld006955d6f77e175@mail.gmail.com> (raw)
In-Reply-To: <11710.1181266274@sss.pgh.pa.us>
References: <20070518104646.GA13811@uio.no>
	<008201c7993c$76c88a10$653e10ac@ilgvaio>
	<20070518111455.GA13978@uio.no>
	<28604.1179503689@sss.pgh.pa.us>
	<357fa7590706051430h5db6760dx9d4a46c7a8a36205@mail.gmail.com>
	<10645.1181081285@sss.pgh.pa.us>
	<357fa7590706071011g4e337937rc622ffed39856425@mail.gmail.com>
	<11349.1181265079@sss.pgh.pa.us>
	<20070608012257.GB20828@alvh.no-ip.org>
	<11710.1181266274@sss.pgh.pa.us>

Thanks Tom and Alvaro.

To follow up on this, I re-wrote and tweaked a number of queries (including
the one provided) to change "LEFT OUTER JOIN ... WHERE col IS NULL" clauses
to "WHERE col NOT IN (...)" clauses.

This has brought performance to an acceptable level on 8.2.

Thanks for your time,
Steve


On 6/7/07, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>
> Alvaro Herrera <alvherre@commandprompt.com> writes:
> > Tom Lane escribió:
> >> I was hoping that the auto plan invalidation code in CVS HEAD would get
> >> it out of this problem, but it seems not to for the problem-as-given.
> >> The trouble is that it won't change plans until autovacuum analyzes the
> >> tables, and that won't happen until the transaction commits and sends
> >> off its I-inserted-lotsa-rows report to the stats collector.
>
> > I think there is something we can do about this -- drop the default
> > value for analyze threshold.
>
> Maybe worth doing, but it doesn't help for Steve's example.
>
>                        regards, tom lane
>

view thread (24+ messages)

Message-ID: <357fa7590706121131t5adf3795ld006955d6f77e175@mail.gmail.com>
Permalink:  ../357fa7590706121131t5adf3795ld006955d6f77e175@mail.gmail.com/
Also on:    postgresql.org/message-id/357fa7590706121131t5adf3795ld006955d6f77e175@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: steven.flatt@gmail.com, tgl@sss.pgh.pa.us, alvherre@commandprompt.com, sgunderson@bigfoot.com
  Subject: Re: performance drop on 8.2.4, reverting to 8.1.4
  In-Reply-To: <357fa7590706121131t5adf3795ld006955d6f77e175@mail.gmail.com>
  References: <20070518104646.GA13811@uio.no> <008201c7993c$76c88a10$653e10ac@ilgvaio> <20070518111455.GA13978@uio.no> <28604.1179503689@sss.pgh.pa.us> <357fa7590706051430h5db6760dx9d4a46c7a8a36205@mail.gmail.com> <10645.1181081285@sss.pgh.pa.us> <357fa7590706071011g4e337937rc622ffed39856425@mail.gmail.com> <11349.1181265079@sss.pgh.pa.us> <20070608012257.GB20828@alvh.no-ip.org> <11710.1181266274@sss.pgh.pa.us> <357fa7590706121131t5adf3795ld006955d6f77e175@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox