pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Manfred Koizar <mkoi-pg@aon.at>
Cc: Russell Smith <mr-russ@pws.com.au>
Cc: pgsql-performance@postgresql.org
Subject: Re: Use of Functional Indexs and Planner estimates
Date: Tue, 08 Jun 2004 10:33:30 -0400
Message-ID: <1315.1086705210@sss.pgh.pa.us> (raw)
In-Reply-To: <6kvac0hridvjffsnf527tk0gh7qu58cac4@email.aon.at>
References: <200406081724.36617.mr-russ@pws.com.au>
	<6kvac0hridvjffsnf527tk0gh7qu58cac4@email.aon.at>

Manfred Koizar <mkoi-pg@aon.at> writes:
> So statistics gathering for expressional indexes will be in 7.5, but I
> don't know about the state of the planner ...

Planner support is there too:

2004-02-16 19:52  tgl

	* src/: backend/optimizer/path/costsize.c,
	backend/optimizer/util/relnode.c, backend/utils/adt/selfuncs.c,
	include/optimizer/pathnode.h, include/utils/selfuncs.h: Make use of
	statistics on index expressions.  There are still some corner cases
	that could stand improvement, but it does all the basic stuff.	A
	byproduct is that the selectivity routines are no longer
	constrained to working on simple Vars; we might in future be able
	to improve the behavior for subexpressions that don't match
	indexes.

I don't recall anymore what "corner cases" I had in mind for future
improvement.

			regards, tom lane



view thread (5+ messages)  latest in thread

Message-ID: <1315.1086705210@sss.pgh.pa.us>
Permalink:  ../1315.1086705210@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1315.1086705210@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, mkoi-pg@aon.at, mr-russ@pws.com.au
  Subject: Re: Use of Functional Indexs and Planner estimates
  In-Reply-To: <1315.1086705210@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