16 Mar 2007 20:06
Re: PostgreSQL 8.2.3 VACUUM Timings/Performance
Bruce McAlister <bruce.mcalister <at> blueface.ie>
2007-03-16 19:06:57 GMT
2007-03-16 19:06:57 GMT
Hi All,
Okay, I'm getting a little further now. I'm about to create entries in the
pg_autovacuum system tables. However, I'm a little confused as to how I go
about finding out the OID value of the tables. The pg_autovacuum table
requires the OID of the table you want to create settings for (vacrelid).
Can anyone shed some light on how I can extract the OID of the table? Also,
what happens if you create a table without OID's, are you still able to add
it's details in the pg_autovacuum table if there is no OID associated with a
table?
Name Type References Description
vacrelid oid pg_class.oid The table this entry is for
enabled bool If false, this table is never autovacuumed
vac_base_thresh integer Minimum number of modified tuples before
vacuum
vac_scale_factor float4 Multiplier for reltuples to add to
vac_base_thresh
anl_base_thresh integer Minimum number of modified tuples before
analyze
anl_scale_factor float4 Multiplier for reltuples to add to
anl_base_thresh
vac_cost_delay integer Custom vacuum_cost_delay parameter
vac_cost_limit integer Custom vacuum_cost_limit parameter
freeze_min_age integer Custom vacuum_freeze_min_age parameter
freeze_max_age integer Custom autovacuum_freeze_max_age parameter
Thanks
Bruce
(Continue reading)
RSS Feed