pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Simon Riggs <simon@2ndquadrant.com>
Cc: Kevin Grittner <Kevin.Grittner@wicourts.gov>
Cc: pgsql-performance@postgresql.org, Andreas Kretschmer <akretschmer@spamfence.net>
Subject: Re: BETWEEN optimizer problems with single-value
Date: Thu, 16 Mar 2006 14:45:34 -0500
Message-ID: <19304.1142538334@sss.pgh.pa.us> (raw)
In-Reply-To: <1142537298.3859.497.camel@localhost.localdomain>
References: <44180105.EE98.0025.0@wicourts.gov>
	<20060315181735.GA22240@KanotixBox>
	<44180D33.EE98.0025.0@wicourts.gov>
	<28798.1142450270@sss.pgh.pa.us>
	<1142467626.3859.207.camel@localhost.localdomain>
	<1142468678.3859.221.camel@localhost.localdomain>
	<11428.1142474724@sss.pgh.pa.us>
	<1142510032.3859.320.camel@localhost.localdomain>
	<17043.1142524621@sss.pgh.pa.us>
	<1142537298.3859.497.camel@localhost.localdomain>

Simon Riggs <simon@2ndquadrant.com> writes:
> I was thinking that we would fill out the OpExpr with different
> opclasses for each plan, so each one sees a different story. (I was
> thinking there was a clauselist for each plan; if not, there could be.)

This is backwards: there isn't a plan yet.  If there were, having
clauselist_selectivity return different answers depending on what index
the plan was thinking of using would still be wrong.

> [BTW how do you add new indexes to system tables? I want to add one to
> pg_inherits but not sure where to look.]

src/include/catalog/indexing.h

Offhand I think adding a new entry is all you have to do.  You may also
want a syscache to go with it, which'll take a bit more work.

			regards, tom lane



view thread (20+ messages)  latest in thread

Message-ID: <19304.1142538334@sss.pgh.pa.us>
Permalink:  ../19304.1142538334@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/19304.1142538334@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, simon@2ndquadrant.com, Kevin.Grittner@wicourts.gov, akretschmer@spamfence.net
  Subject: Re: BETWEEN optimizer problems with single-value
  In-Reply-To: <19304.1142538334@sss.pgh.pa.us>

* 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