Re: Large table update/vacuum PLEASE HELP!
От | Stephan Szabo |
---|---|
Тема | Re: Large table update/vacuum PLEASE HELP! |
Дата | |
Msg-id | 20020417094539.I62182-100000@megazone23.bigpanda.com обсуждение исходный текст |
Ответ на | Re: Large table update/vacuum PLEASE HELP! (Dmitry Tkach <dmitry@openratings.com>) |
Список | pgsql-general |
On Wed, 17 Apr 2002, Dmitry Tkach wrote: > >In the 10% case, you should be within the realm where the table's steady > >state size is around that much more with reasonable frequency normal > >VACUUMs and an appropriately sized free space map. > > > Are you saying that, if I, say, update 1000 tuples today, and another > 1000 tomorow, it will reuse the today's dead tuples, and not create new > ones, so that I end up with just 1000 of them, not 2000? > > Just making sure... The expectation is that if you update 1000 tuples today, do a normal vacuum when no transaction is left that can see the old state of those tuples, then update 1000 tuples tomorrow, it'll attempt to reuse as much of that "dead" space as possible which may very well mean you end up with 1200 of them say, but no less than 1000 and almost certainly not 2000. For 1000 that should work, for much larger numbers you may need to play with settings to get an appropriate effect (you may see that as the number updated grows in order of magnitude that the wasted space approaches 2x as you the map of free space isn't large enough unless you up those settings).
В списке pgsql-general по дате отправления: