Re: Suggestion for optimization
От | Dann Corbit |
---|---|
Тема | Re: Suggestion for optimization |
Дата | |
Msg-id | D90A5A6C612A39408103E6ECDD77B82920CD1E@voyager.corporate.connx.com обсуждение исходный текст |
Ответ на | Suggestion for optimization ("Dann Corbit" <DCorbit@connx.com>) |
Ответы |
Re: Suggestion for optimization
|
Список | pgsql-hackers |
-----Original Message----- From: Tom Lane [mailto:tgl@sss.pgh.pa.us] Sent: Friday, April 05, 2002 3:42 PM To: Peter Bierman Cc: Dann Corbit; pgsql-hackers@postgresql.org Subject: Re: [HACKERS] Suggestion for optimization Peter Bierman <bierman@apple.com> writes: > ... Your comment: "An > accurate cardinality figure can greatly enhance the optimizer's > ability to perform joins in the correct order" was intriguing, and I'd > be interested in Tom's thoughts on just that bit. Approximate figures are quite sufficient for the planner's purposes. AFAICS, making them exact would not improve the planning estimates at all, because there are too many other sources of error. We have approximate stats already via vacuum/analyze statistics gathering. >> What happens if someone deletes 75% of a table? What happens if someone imports 30 times more rows than are already in the table? What happens if one table is remarkably small or even empty and you are unaware? In extreme cases, it can mean orders of magnitude performance difference. <<
В списке pgsql-hackers по дате отправления: