mirror of
https://github.com/postgres/postgres.git
synced 2025-10-25 13:17:41 +03:00
Separate out the VacRUsage stuff as an independent module, in preparation
for using it for other things besides VACUUM.
This commit is contained in:
@@ -7,21 +7,13 @@
|
||||
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $PostgreSQL: pgsql/src/include/commands/vacuum.h,v 1.60 2005/07/14 05:13:43 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/include/commands/vacuum.h,v 1.61 2005/10/03 22:52:24 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
#ifndef VACUUM_H
|
||||
#define VACUUM_H
|
||||
|
||||
#include <sys/time.h>
|
||||
|
||||
#ifdef HAVE_GETRUSAGE
|
||||
#include <sys/resource.h>
|
||||
#else
|
||||
#include "rusagestub.h"
|
||||
#endif
|
||||
|
||||
#include "access/htup.h"
|
||||
#include "catalog/pg_attribute.h"
|
||||
#include "catalog/pg_statistic.h"
|
||||
@@ -113,13 +105,6 @@ typedef struct VacAttrStats
|
||||
} VacAttrStats;
|
||||
|
||||
|
||||
/* State structure for vac_init_rusage/vac_show_rusage */
|
||||
typedef struct VacRUsage
|
||||
{
|
||||
struct timeval tv;
|
||||
struct rusage ru;
|
||||
} VacRUsage;
|
||||
|
||||
/* Default statistics target (GUC parameter) */
|
||||
extern DLLIMPORT int default_statistics_target; /* DLLIMPORT for PostGIS */
|
||||
|
||||
@@ -137,8 +122,6 @@ extern void vacuum_set_xid_limits(VacuumStmt *vacstmt, bool sharedRel,
|
||||
TransactionId *oldestXmin,
|
||||
TransactionId *freezeLimit);
|
||||
extern bool vac_is_partial_index(Relation indrel);
|
||||
extern void vac_init_rusage(VacRUsage *ru0);
|
||||
extern const char *vac_show_rusage(VacRUsage *ru0);
|
||||
extern void vacuum_delay_point(void);
|
||||
|
||||
/* in commands/vacuumlazy.c */
|
||||
|
||||
Reference in New Issue
Block a user