Tom Lane wrote: > 2. The tag approach presumes that the query programmer is smarter > than the planner. This might be true under ideal circumstances, > but I have a hard time crediting that the planner looking at today's > stats is dumber than the junior programmer who left two years ago, > and no one's updated his query since then. The planner may not be > very bright, but it doesn't get bored, tired, or sick, nor move on > to the next opportunity. It will pick the best plan it can on the > basis of current statistics and the specific values appearing in > the given query. Every time. A tag-forced query plan doesn't > have that adaptability.
Add to this that hand tuning would happem mostly queries where the two cost estimates are fairly close, and add the variability of a multi-user environment, a hard-coded plan may turn out to be faster only some of the time, and could change very quickly into something longer if the table changes. My point is that very close cases are the ones most likely to change over time. -- Bruce Momjian | http://candle.pha.pa.us [EMAIL PROTECTED] | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026 ---------------------------(end of broadcast)--------------------------- TIP 3: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your message can get through to the mailing list cleanly