mirror of
https://github.com/postgres/postgres.git
synced 2026-06-10 17:20:31 -04:00
Avoid including clog.h in proc.h
The number of .c files that must include access/clog.h can currently be counted on one's fingers and miss only one (assuming one has the usual number of hands). However, due to indirect inclusion via proc.h, there's a lot of files that are pointlessly including it. This is easy to avoid with the easy trick implemented by this commit. Author: Álvaro Herrera <alvherre@kurilemu.de> Discussion: https://postgr.es/m/202603221856.iwlhitt6dxxx@alvherre.pgsql
This commit is contained in:
parent
6e243d81c5
commit
f227b7b20c
2 changed files with 4 additions and 1 deletions
|
|
@ -33,6 +33,7 @@
|
|||
#include <unistd.h>
|
||||
#include <sys/time.h>
|
||||
|
||||
#include "access/clog.h"
|
||||
#include "access/transam.h"
|
||||
#include "access/twophase.h"
|
||||
#include "access/xlogutils.h"
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@
|
|||
#ifndef _PROC_H_
|
||||
#define _PROC_H_
|
||||
|
||||
#include "access/clog.h"
|
||||
#include "access/xlogdefs.h"
|
||||
#include "lib/ilist.h"
|
||||
#include "miscadmin.h"
|
||||
|
|
@ -24,6 +23,9 @@
|
|||
#include "storage/proclist_types.h"
|
||||
#include "storage/procnumber.h"
|
||||
|
||||
/* Avoid including clog.h here */
|
||||
typedef int XidStatus;
|
||||
|
||||
/*
|
||||
* Each backend advertises up to PGPROC_MAX_CACHED_SUBXIDS TransactionIds
|
||||
* for non-aborted subtransactions of its current top transaction. These
|
||||
|
|
|
|||
Loading…
Reference in a new issue