diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2005-08-11 21:11:50 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2005-08-11 21:11:50 +0000 |
commit | d90c531188196cd4ea6683c7f4395151b42028a2 (patch) | |
tree | aef955843c8a9648f7841d0e934ed152976129fa /src/backend/libpq/hba.c | |
parent | f6c30d54fa26047cc2e7315debb85a0a20a07c90 (diff) | |
download | postgresql-d90c531188196cd4ea6683c7f4395151b42028a2.tar.gz postgresql-d90c531188196cd4ea6683c7f4395151b42028a2.zip |
Autovacuum loose end mop-up. Provide autovacuum-specific vacuum cost
delay and limit, both as global GUCs and as table-specific entries in
pg_autovacuum. stats_reset_on_server_start is now OFF by default,
but a reset is forced if we did WAL replay. XID-wrap vacuums do not
ANALYZE, but do FREEZE if it's a template database. Alvaro Herrera
Diffstat (limited to 'src/backend/libpq/hba.c')
-rw-r--r-- | src/backend/libpq/hba.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/backend/libpq/hba.c b/src/backend/libpq/hba.c index 717b398f893..f565442ac68 100644 --- a/src/backend/libpq/hba.c +++ b/src/backend/libpq/hba.c @@ -10,7 +10,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/libpq/hba.c,v 1.146 2005/07/29 19:30:04 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/libpq/hba.c,v 1.147 2005/08/11 21:11:44 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -1001,13 +1001,15 @@ load_hba(void) * dboid: gets database OID * dbtablespace: gets database's default tablespace's OID * dbfrozenxid: gets database's frozen XID + * dbvacuumxid: gets database's vacuum XID * * This is not much related to the other functions in hba.c, but we put it * here because it uses the next_token() infrastructure. */ bool read_pg_database_line(FILE *fp, char *dbname, Oid *dboid, - Oid *dbtablespace, TransactionId *dbfrozenxid) + Oid *dbtablespace, TransactionId *dbfrozenxid, + TransactionId *dbvacuumxid) { char buf[MAX_TOKEN]; @@ -1030,6 +1032,10 @@ read_pg_database_line(FILE *fp, char *dbname, Oid *dboid, if (!isdigit((unsigned char) buf[0])) elog(FATAL, "bad data in flat pg_database file"); *dbfrozenxid = atoxid(buf); + next_token(fp, buf, sizeof(buf)); + if (!isdigit((unsigned char) buf[0])) + elog(FATAL, "bad data in flat pg_database file"); + *dbvacuumxid = atoxid(buf); /* expect EOL next */ if (next_token(fp, buf, sizeof(buf))) elog(FATAL, "bad data in flat pg_database file"); |