Re: Vacuum stats interpreted?
От | Tom Lane |
---|---|
Тема | Re: Vacuum stats interpreted? |
Дата | |
Msg-id | 18578.1069890693@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Re: Vacuum stats interpreted? (Jeff Boes <jboes@nexcerpt.com>) |
Список | pgsql-admin |
Jeff Boes <jboes@nexcerpt.com> writes: > At some point in time, tgl@sss.pgh.pa.us (Tom Lane) wrote: >> UnUsed is the number of empty line-pointer slots. At 4 bytes apiece, >> this would have to vastly exceed the number of live tuples before you >> should worry much. > For which values of "vastly"? I have a small table (1-2k rows) which has a ratio > of UnUsed:Tuples of 50-500. That sounds like a lot to me too. You should probably VACUUM FULL and then try to increase the frequency of regular vacuums to cut down on the accumulation of deadwood. > The table in question has a ratio of about 10 or 11:1. It did? I saw about 1:1: >> INFO: Pages 3886: Changed 0, Empty 0; Tup 180175: Vac 122, Keep 26437, UnUsed 135721. which is why I didn't feel a need to panic about it. > For some tables (not this one), we find that it significantly improves > performance (of non-indexed queries) to pg_dump and reload the table > periodically. I've been asked to try to quantify (from these vacuum numbers) > when we can predict that a dump-and-reload would be valuable. For non-indexed scans I would think that the fraction of free space (hence, useless I/O) would be the number you are after. VACUUM does not really offer this, but see contrib/pgstattuple. regards, tom lane
В списке pgsql-admin по дате отправления: