Re: optimizer hints?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alex Pilosov <alex(at)pilosoft(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: optimizer hints?
Date: 2001-06-06 00:05:44
Message-ID: 21797.991785944@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Alex Pilosov <alex(at)pilosoft(dot)com> writes:
> Example: Index scan when data in index is stored in approximately same
> order in physical table will be fast. Index scan when index order does not
> match table order will be slow. I don't see a way you can explain _that_
> to optimizer, nor I really want to.

Precisely why you should leave it to the optimizer to figure
these things out for itself. Curiously enough, there is a
physical-order-correlation statistic in pg_statistic now ;-)

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alex Pilosov 2001-06-06 00:10:13 Re: optimizer hints?
Previous Message John Moore 2001-06-05 23:48:45 PostgreSQL vulnerabilities with fsync turned off?