pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Simon Riggs <simon@2ndquadrant.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers@postgreSQL.org
Cc: PostgreSQL Performance <pgsql-performance@postgreSQL.org>
Cc: Steve <cheetah@tanabi.org>
Subject: Re: choose_bitmap_and again (was Re: [PERFORM] StrangelyVariable Query Performance)
Date: Sat, 14 Apr 2007 09:24:07 +0100
Message-ID: <1176539048.3635.316.camel@silverbirch.site> (raw)
In-Reply-To: <26399.1176504501@sss.pgh.pa.us>
References: <57271CC2-BCB1-4ACA-A177-4FF64F1BC33F@brandeis.edu>
	<16E9A17C-ADFA-43B2-B7EA-5C7A4D7E96D1@event-s.net>
	<E1Hc0lc-0001iE-La@elasmtp-banded.atl.sa.earthlink.net>
	<0914C05F-BA1B-4A6C-A1B1-52256BC851A4@event-s.net>
	<1176396964.13754.16.camel@state.g2switchworks.com>
	<Pine.LNX.4.64.0704121000570.32187@glacier.frostconsultingllc.com>
	<Pine.GSO.4.64.0704121653030.17955@kittyhawk.tanabi.org>
	<1176414724.13754.23.camel@state.g2switchworks.com>
	<Pine.GSO.4.64.0704121804000.17955@kittyhawk.tanabi.org>
	<1176416077.13754.26.camel@state.g2switchworks.com>
	<9833.1176418809@sss.pgh.pa.us>
	<Pine.GSO.4.64.0704121855300.17955@kittyhawk.tanabi.org>
	<10117.1176420763@sss.pgh.pa.us>
	<Pine.GSO.4.64.0704121928440.17955@kittyhawk.tanabi.org>
	<10355.1176422445@sss.pgh.pa.us>
	<Pine.GSO.4.64.0704122001160.17955@kittyhawk.tanabi.org>
	<10503.1176423606@sss.pgh.pa.us>
	<Pine.GSO.4.64.0704122025450.17955@kittyhawk.tanabi.org>
	<12360.1176436194@sss.pgh.pa.us>
	<Pine.GSO.4.64.0704122354430.17955@kit! tyhawk.tanabi.org>
	<26399.1176504501@sss.pgh.pa.us>

On Fri, 2007-04-13 at 18:48 -0400, Tom Lane wrote:
> Has anyone got any thoughts about the best way to do this?

I don't think we know enough to pick one variant that works in all
cases. This requires more detailed analysis of various cases.

Lets put in a parameter to allow the options to be varied. The purpose
would be to look for some more information that allows us to see what
the pre-conditions would be for each heuristic.

Initially, we say this is a beta-only feature and may be withdrawn in
the production version.

Why did it not pick my index? is a tiring game, but one that must be
played. I hope that the ORDER LIMIT optimization should reduce the
number of indexes chosen to maintain sort order in the output.

-- 
  Simon Riggs             
  EnterpriseDB   http://www.enterprisedb.com





view thread (10+ messages)  latest in thread

Message-ID: <1176539048.3635.316.camel@silverbirch.site>
Permalink:  ../1176539048.3635.316.camel@silverbirch.site/
Also on:    postgresql.org/message-id/1176539048.3635.316.camel@silverbirch.site

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: simon@2ndquadrant.com, tgl@sss.pgh.pa.us, pgsql-hackers@postgreSQL.org, cheetah@tanabi.org
  Subject: Re: choose_bitmap_and again (was Re: [PERFORM] StrangelyVariable Query Performance)
  In-Reply-To: <1176539048.3635.316.camel@silverbirch.site>

* 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