mirror of
https://github.com/postgres/postgres.git
synced 2026-03-27 12:54:24 -04:00
Reduce includes in pgstat.h
The lack of fallout here is somewhat surprising. Author: Andres Freund <andres@anarazel.de> Discussion: https://postgr.es/m/aY-UE-4t7FiYgH3t@alap3.anarazel.de
This commit is contained in:
parent
d0833fdae7
commit
7bb50dd7d6
1 changed files with 7 additions and 2 deletions
|
|
@ -11,7 +11,6 @@
|
|||
#ifndef PGSTAT_H
|
||||
#define PGSTAT_H
|
||||
|
||||
#include "access/transam.h" /* for FullTransactionId */
|
||||
#include "datatype/timestamp.h"
|
||||
#include "portability/instr_time.h"
|
||||
#include "postmaster/pgarch.h" /* for MAX_XFN_CHARS */
|
||||
|
|
@ -19,10 +18,16 @@
|
|||
#include "utils/backend_progress.h" /* for backward compatibility */ /* IWYU pragma: export */
|
||||
#include "utils/backend_status.h" /* for backward compatibility */ /* IWYU pragma: export */
|
||||
#include "utils/pgstat_kind.h"
|
||||
#include "utils/relcache.h"
|
||||
#include "utils/wait_event.h" /* for backward compatibility */ /* IWYU pragma: export */
|
||||
|
||||
|
||||
/* avoid including access/transam.h */
|
||||
typedef struct FullTransactionId FullTransactionId;
|
||||
|
||||
/* avoid including utils/relcache.h */
|
||||
typedef struct RelationData *Relation;
|
||||
|
||||
|
||||
/* ----------
|
||||
* Paths for the statistics files (relative to installation's $PGDATA).
|
||||
* ----------
|
||||
|
|
|
|||
Loading…
Reference in a new issue