Re: again on index usage

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Daniel Kalchev <daniel(at)digsys(dot)bg>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Zeugswetter Andreas SB SD <ZeugswetterA(at)spardat(dot)at>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: again on index usage
Date: 2002-01-11 18:24:20
Message-ID: 200201111824.g0BIOKY26496@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Daniel Kalchev wrote:
> >>>Tom Lane said:
> > "Zeugswetter Andreas SB SD" <ZeugswetterA(at)spardat(dot)at> writes:
> > > My preference would actually be a way to make the optimizer
> > > choose a plan that causes minimal workload, and not shortest runtime
> >
> > ?? I am not sure that I see the difference.
>
> There can be difference only if the optimizer takes into account already
> executing plans (by other backends).
>
> > What I think you are saying is that when there's lots of competing work,
> > seqscans have less advantage over indexscans because the
> > sequential-access locality advantage is lost when the disk drive has to
> > go off and service some other request.
>
> This is exactly my point. The primary goal of the optimizer in my opinion
> should be to avoid trashing. :-) Now, it is not easy to figure out when the
> system starts trashing - at least not a portable way I can think of
> immediately.

I have always felt some feedback mechanism from the executor back to the
optimizer was required but I was never sure quite how to implement it.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2002-01-11 18:30:53 Re: again on index usage
Previous Message Don Baccus 2002-01-11 18:23:27 Re: again on index usage