Re: Query performance problems with partitioned tables
От
Richard Huxton
Тема
Re: Query performance problems with partitioned tables
Дата
Msg-id
4635F2E1.3090602@archonet.com
Ответ на
Re: Query performance problems with partitioned tables (Andreas Haumer)
Список
Дерево обсуждения
Query performance problems with partitioned tables Andreas Haumer <andreas@xss.co.at>
Re: Query performance problems with partitioned tables Tom Lane <tgl@sss.pgh.pa.us>
Re: Query performance problems with partitioned tables Andreas Haumer <andreas@xss.co.at>
Re: Query performance problems with partitioned tables Gregory Stark <stark@enterprisedb.com>
Re: Query performance problems with partitioned tables Fei Liu <fei.liu@aepnetworks.com>
Re: Query performance problems with partitioned tables "Merlin Moncure" <mmoncure@gmail.com>
Re: Query performance problems with partitioned tables Scott Marlowe <smarlowe@g2switchworks.com>
Re: Query performance problems with partitioned tables Fei Liu <fei.liu@aepnetworks.com>
Re: Query performance problems with partitioned tables Scott Marlowe <smarlowe@g2switchworks.com>
Re: Query performance problems with partitioned tables "Merlin Moncure" <mmoncure@gmail.com>
Re: Query performance problems with partitioned tables Guillaume Cottenceau <gc@mnc.ch>
Re: Query performance problems with partitioned tables Andreas Haumer <andreas@xss.co.at>
Re: Query performance problems with partitioned tables "Steinar H. Gunderson" <sgunderson@bigfoot.com>
Re: Query performance problems with partitioned tables Richard Huxton <dev@archonet.com>
Re: Query performance problems with partitioned tables "Neil Peter Braggio" <pbraggio@gmail.com>
Re: Query performance problems with partitioned tables Andreas Haumer <andreas@xss.co.at>
Re: Query performance problems with partitioned tables Guillaume Cottenceau <gc@mnc.ch>
Re: Query performance problems with partitioned tables Gregory Stark <stark@enterprisedb.com>
Andreas Haumer wrote: > > I think the planner could do the following: > > a) It could make a better decision in which direction to scan > the partitions (depending on sort order involved in the query) > > b) It could stop scanning as soon as there can not be any further > resulting row according to the CHECK constraints given on the tables. [snip] > Perhaps the logic to implement this is complex, but IMHO > it _should_ be doable (and proofable), shouldn't it? Ah, it might be do-able for some subset of cases, but is it cost-effective to check for in *all* cases? Don't forget the constraints and where clauses can be arbitrarily complex. -- Richard Huxton Archonet Ltd
В списке pgsql-performance по дате отправления
От: Guillaume Cottenceau
Дата: