Skip to content

Commit 8eb3028

Browse files
committed
Fix pg_wait_sampling build for PG 9.6
1 parent 4f65ca6 commit 8eb3028

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

pg_wait_sampling.c

+7-4
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,27 @@
88
* contrib/pg_wait_sampling/pg_wait_sampling.c
99
*/
1010
#include "postgres.h"
11-
#include "fmgr.h"
12-
#include "funcapi.h"
11+
1312
#include "access/htup_details.h"
1413
#include "access/twophase.h"
1514
#include "catalog/pg_type.h"
15+
#include "fmgr.h"
16+
#include "funcapi.h"
1617
#include "miscadmin.h"
1718
#include "optimizer/planner.h"
1819
#include "pgstat.h"
19-
#include "storage/spin.h"
2020
#include "storage/ipc.h"
2121
#include "storage/pg_shmem.h"
2222
#include "storage/procarray.h"
2323
#include "storage/shm_mq.h"
2424
#include "storage/shm_toc.h"
25+
#include "storage/spin.h"
2526
#include "utils/builtins.h"
2627
#include "utils/datetime.h"
27-
#include "utils/guc.h"
2828
#include "utils/guc_tables.h"
29+
#include "utils/guc.h"
30+
#include "utils/memutils.h" /* TopMemoryContext. Actually for PG 9.6 only,
31+
* but there should be no harm for others. */
2932

3033
#include "pg_wait_sampling.h"
3134

0 commit comments

Comments
 (0)