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-05 22:57:17
Message-ID: 21486.991781837@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:
> Are there any plans to implement some way to force optimizer to decide on
> index scan vs table scan _for a specific table_, and to tell optimizer to
> use a particular index when operating on a table?

No. The game plan is to make the optimizer smarter, not to spend time
on nonstandard cruft like that. Besides, "optimization hints" have a
way of becoming pessimization hints over time, as your data shifts and
the hints don't.

I'm about ready to call for alpha testing on the improved pg_statistic
code, BTW. If you've got time you might see what the current CVS tip
thinks about your query.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Stephan Richter 2001-06-05 22:59:29 Re: setting PGDATESTYLE
Previous Message Tom Lane 2001-06-05 22:25:59 Re: setting PGDATESTYLE