| From: | Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> |
|---|---|
| To: | Steve Kehlet <steve(dot)kehlet(at)gmail(dot)com> |
| Cc: | Forums postgresql <pgsql-general(at)postgresql(dot)org> |
| Subject: | Re: delaying autovacuum freeze via storage params? |
| Date: | 2015-05-27 02:27:29 |
| Message-ID: | 20150527022729.GA5885@postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Medhavi Mahansaria | 2015-05-27 05:52:21 | Re: Reg: BULK COLLECT |
| Previous Message | Steve Kehlet | 2015-05-26 23:53:37 | delaying autovacuum freeze via storage params? |