Re: Last autovacuum on postgresql 8.1 - Mailing list pgsql-novice

From Grzegorz Szpetkowski
Subject Re: Last autovacuum on postgresql 8.1
Date
Msg-id BANLkTimdX3mv=5xkv0z_6keTgHW7VEV52Q@mail.gmail.com
Whole thread Raw
In response to Last autovacuum on postgresql 8.1  (Machiel Richards <machielr@rdc.co.za>)
Responses Re: Last autovacuum on postgresql 8.1  (Machiel Richards <machielr@rdc.co.za>)
List pgsql-novice
Hi,

I know that autovacuum daemon in available since PostgreSQL 8.1, but
as optional feature that need to be enabled explicitly. Starting from
PostgreSQL 8.3 it is enabled by default. I think that some properties
in postgresql.conf need to be changed (plus server restart/reload)
such as:

stats_start_collector, stats_row_level, autovacuum

Refer to http://www.postgresql.org/docs/8.1/static/runtime-config-autovacuum.html
and http://www.postgresql.org/docs/8.1/static/maintenance.html#AUTOVACUUM

Regards,
Grzegorz Szpetkowski

2011/5/9 Machiel Richards <machielr@rdc.co.za>:
> Hi All
>
>
>       One of our clients are running a combination of postgresql 8.1 and
> 8.3.
>
>         On the 8.3 databases I can run the following select in order to
> determine when last a table was autovacuumed:
>
>             SELECT relname,last_autovacuum,last_autoanalyze from
> pg_stat_user_tables;
>
>         However this is not available on the 8.1 databases.
>
>         Can someone please confirm whether autovacuum was available on
> version 8.1 and if so what the query would be for this?
>
>          If autovacuum was not available, how would I go about in finding
> out when last a tables was actually vacuumed?
>
>         Thank you in advance for any assistance in this.
>
>
> Regards
> Machiel

pgsql-novice by date:

Previous
From: Machiel Richards
Date:
Subject: Last autovacuum on postgresql 8.1
Next
From: "Birchall, Austen"
Date:
Subject: Seed database for import