Re: delaying autovacuum freeze via storage params?
| От | Alvaro Herrera |
|---|---|
| Тема | Re: delaying autovacuum freeze via storage params? |
| Дата | |
| Msg-id | 20150527022729.GA5885@postgresql.org обсуждение исходный текст |
| Ответ на | delaying autovacuum freeze via storage params? (Steve Kehlet <steve.kehlet@gmail.com>) |
| Ответы |
Re: delaying autovacuum freeze via storage params?
|
| Список | pgsql-general |
Steve Kehlet wrote:
> Hello, I'd like to postpone an "autovacuum: VACUUM public.mytable (to
> prevent wraparound)" and handle it manually at another time. I thought I
> could set these storage parameters on the large table in question
> ("mytable") like this:
>
> ALTER TABLE mytable SET (
> autovacuum_freeze_min_age=10000000,
> autovacuum_freeze_table_age=800000000,
> autovacuum_freeze_max_age=1000000000
> );
See the docs about the freeze max age storage parameter -- the per-table
setting can decrease the global setting but not increase it. You can
increase the global setting (postgresql.conf) to 2 billion AFAIR which
should give you plenty of room. Needs a server restart though.
--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
В списке pgsql-general по дате отправления: