diff options
| author | Heikki Linnakangas | 2009-01-16 13:27:24 +0000 |
|---|---|---|
| committer | Heikki Linnakangas | 2009-01-16 13:27:24 +0000 |
| commit | 6587818542e79012276dcfedb2f97e3522ee5e9b (patch) | |
| tree | 189d8de9959bfd9c7fd8a50acb30ab3f04f93e3f /src/include/commands | |
| parent | 19afb4e80535ba8d0ce797029a1ff448541e93f2 (diff) | |
Add vacuum_freeze_table_age GUC option, to control when VACUUM should
ignore the visibility map and scan the whole table, to advance
relfrozenxid.
Diffstat (limited to 'src/include/commands')
| -rw-r--r-- | src/include/commands/vacuum.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/include/commands/vacuum.h b/src/include/commands/vacuum.h index c891dc5c867..f5f6cf4aa8c 100644 --- a/src/include/commands/vacuum.h +++ b/src/include/commands/vacuum.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/commands/vacuum.h,v 1.83 2009/01/01 17:23:58 momjian Exp $ + * $PostgreSQL: pgsql/src/include/commands/vacuum.h,v 1.84 2009/01/16 13:27:24 heikki Exp $ * *------------------------------------------------------------------------- */ @@ -122,6 +122,7 @@ typedef struct VacAttrStats extern PGDLLIMPORT int default_statistics_target; /* PGDLLIMPORT for * PostGIS */ extern int vacuum_freeze_min_age; +extern int vacuum_freeze_table_age; /* in commands/vacuum.c */ @@ -135,9 +136,11 @@ extern void vac_update_relstats(Relation relation, double num_tuples, bool hasindex, TransactionId frozenxid); -extern void vacuum_set_xid_limits(int freeze_min_age, bool sharedRel, +extern void vacuum_set_xid_limits(int freeze_min_age, int freeze_table_age, + bool sharedRel, TransactionId *oldestXmin, - TransactionId *freezeLimit); + TransactionId *freezeLimit, + TransactionId *freezeTableLimit); extern void vac_update_datfrozenxid(void); extern bool vac_is_partial_index(Relation indrel); extern void vacuum_delay_point(void); |
