| От | Anj Adu |
|---|---|
| Тема | Re: sequential scan on child partition tables |
| Дата | |
| Msg-id | f2fd819a0910180824u4846a214w6a0a43f75415b72@mail.gmail.com обсуждение |
| Ответ на | Re: sequential scan on child partition tables (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-performance |
The actual data returned is a tiny fraction of the total table volume. Is there a way to force an index scan on the partitions in a guaranteed manner without resorting to re-writing queries with the union all on partitions. Thank you Sriram On Wed, Oct 14, 2009 at 10:15 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote: > Anj Adu <fotographs@gmail.com> writes: >> This query is doing a sequential scan on the child partitions even >> though indexes on all constrained columns are present > > It looks to me like it's doing exactly what it is supposed to, ie, > indexscan on the partitions where it would help and seqscans on the > partitions where it wouldn't. Indexscan is not better than seqscan > for retrieving all or most of a table. > > regards, tom lane >
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера