pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gary Doades <gpd@gpdnet.co.uk>
To: pgsql-performance@postgresql.org
Subject: Re: planner/optimizer question
Date: Wed, 28 Apr 2004 08:08:03 +0100
Message-ID: <408F6663.22977.CC6AF7D@localhost> (raw)
In-Reply-To: <408F576E.1080504@familyhealth.com.au>
References: <408F5ECD.29849.CA91084@localhost>

I can understand the performance loss on non-selects for keeping the 
index validity state tracking the row validity, but would that outweigh the 
performance gains on selects? Depends on your mix of selects to non 
selects I guess, but other database systems seem to imply that keeping 
the index on track is worth it overall.

Cheers,
Gary.

On 28 Apr 2004 at 15:04, Christopher Kings-Lynne wrote:

> > Why is there an entry in the index for a row if the row is not valid? 
> > Wouldn't it be better for the index entry validity to track the row validity. 
> > If a particular data value for a query (join, where etc.) can be satisfied 
> > by the index entry itself this would be a big performance gain.
> 
> For SELECTs, yes - but for INSERT, UPDATE and DELETE it would be a big 
> performance loss.
> 
> Chris
> 





view thread (37+ messages)  latest in thread

Message-ID: <408F6663.22977.CC6AF7D@localhost>
Permalink:  ../408F6663.22977.CC6AF7D@localhost/
Also on:    postgresql.org/message-id/408F6663.22977.CC6AF7D@localhost

 · 

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: gpd@gpdnet.co.uk
  Subject: Re: planner/optimizer question
  In-Reply-To: <408F6663.22977.CC6AF7D@localhost>

* 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