|
9 | 9 | */ |
10 | 10 | #include "postgres.h" |
11 | 11 |
|
| 12 | +#include <limits.h> |
| 13 | + |
12 | 14 | #include "access/htup_details.h" |
13 | | -#include "access/twophase.h" |
14 | | -#include "catalog/pg_type.h" |
15 | | -#include "fmgr.h" |
| 15 | +#include "catalog/pg_type_d.h" |
| 16 | +#include "executor/executor.h" |
16 | 17 | #include "funcapi.h" |
17 | 18 | #include "miscadmin.h" |
18 | 19 | #include "optimizer/planner.h" |
| 20 | +#include "pg_wait_sampling.h" |
19 | 21 | #include "pgstat.h" |
20 | | -#include "postmaster/autovacuum.h" |
21 | | -#include "replication/walsender.h" |
22 | 22 | #include "storage/ipc.h" |
23 | | -#include "storage/pg_shmem.h" |
24 | | -#include "storage/procarray.h" |
| 23 | +#include "storage/latch.h" |
| 24 | +#include "storage/lock.h" |
| 25 | +#include "storage/lwlock.h" |
| 26 | +#include "storage/proc.h" |
25 | 27 | #include "storage/shm_mq.h" |
26 | 28 | #include "storage/shm_toc.h" |
27 | | -#include "storage/spin.h" |
| 29 | +#include "storage/shmem.h" |
28 | 30 | #include "tcop/utility.h" |
29 | 31 | #include "utils/builtins.h" |
30 | | -#include "utils/datetime.h" |
31 | | -#include "utils/guc_tables.h" |
32 | 32 | #include "utils/guc.h" |
33 | | -#include "utils/memutils.h" /* TopMemoryContext. Actually for PG 9.6 only, |
34 | | - * but there should be no harm for others. */ |
| 33 | +#include "utils/memutils.h" |
| 34 | +#include "utils/timestamp.h" |
35 | 35 |
|
36 | | -#include "compat.h" |
37 | | -#include "pg_wait_sampling.h" |
| 36 | +#if PG_VERSION_NUM < 150000 |
| 37 | +#include "postmaster/autovacuum.h" |
| 38 | +#include "replication/walsender.h" |
| 39 | +#endif |
38 | 40 |
|
39 | 41 | PG_MODULE_MAGIC; |
40 | 42 |
|
|
0 commit comments