| От | Tom Lane |
|---|---|
| Тема | Re: small table occupies many relpages |
| Дата | |
| Msg-id | 29091.1068219946@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | small table occupies many relpages (Markus Bertheau <twanger@bluetwanger.de>) |
| Ответы |
Re: small table occupies many relpages
|
| Список | pgsql-admin |
Markus Bertheau <twanger@bluetwanger.de> writes:
> It has a unique index on virtual_domain. Every day we do <10000 queries
> of the form
> insert into virtual_domains values (default, 'www.something.de')
So you're expecting these inserts to fail because of unique index
violations?
> The big table size slows down sequential scans significantly. What can
> we do to prevent growth of the table?
Vacuum more often. You have to get rid of the tuples that failed the
index check. They are already in the table when the index spits up.
regards, tom lane
В списке pgsql-admin по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера