Skip to content

Commit c758a97

Browse files
author
Alexander Korotkov
committed
Check for PostgreSQL version.
1 parent f524786 commit c758a97

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pg_wait_sampling.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212

1313
#include <postgres.h>
1414

15+
/* Check PostgreSQL version */
16+
#if PG_VERSION_NUM < 90600
17+
#error "You are trying to build pg_wait_sampling with PostgreSQL version lower than 9.6. Please, check you environment."
18+
#endif
19+
1520
#include "storage/proc.h"
1621
#include "storage/shm_mq.h"
1722
#include "utils/timestamp.h"

0 commit comments

Comments
 (0)