Re: Index Scans become Seq Scans after VACUUM ANALYSE
Justin Clift <justin@postgresql.org>
From: Justin Clift <justin@postgresql.org>
To: Thomas Lockhart <lockhart@fourpalms.org>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, Thomas Lockhart <thomas@fourpalms.org>, Jean-Paul ARGUDO <jean-paul.argudo@idealx.com>, pgsql-hackers@postgresql.org
Date: 2002-04-18T02:30:54Z
Lists: pgsql-hackers
Thomas Lockhart wrote: > <snip> > If that were exposed, then folks could have additional control over the > optimizer no matter what syntax they prefer to use. And in fact could > alter the behavior without having to completely rewrite their query. > > One could also think about a threshold mechanism as you mention above, > but istm that allowing explicit control over reordering (fundamentally > different than, say, control over whether particular kinds of scans are > used) is the best first step. Not solely continuing to hide that control > behind heuristics involving query style and numbers of tables. A la Oracle... here we come.... :-/ If we go down this track, although it would be beneficial in the short term, is it the best long term approach? I'm of a belief that *eventually* we really can take enough of the variables into consideration for planning the best query every time. I didn't say it was gunna be soon, nor easy though. + Justin > - Thomas > > ---------------------------(end of broadcast)--------------------------- > TIP 5: Have you checked our extensive FAQ? > > http://www.postgresql.org/users-lounge/docs/faq.html -- "My grandfather once told me that there are two kinds of people: those who work and those who take the credit. He told me to try to be in the first group; there was less competition there." - Indira Gandhi