Skip to content

Commit 271da32

Browse files
author
Marina Polyakova
committed
PGPRO-13320: include commands/explain_state.h for PostgreSQL 18+
See the commit c65bc2e1d14a2d4daed7c1921ac518f2c5ac3d17 (Make it possible for loadable modules to add EXPLAIN options.) in PostgreSQL 18+.
1 parent 389a262 commit 271da32

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pg_query_state.h

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

1313
#include <postgres.h>
1414

15+
#if PG_VERSION_NUM >= 180000
16+
#include "commands/explain_state.h"
17+
#else
1518
#include "commands/explain.h"
19+
#endif
1620
#include "nodes/pg_list.h"
1721
#include "storage/procarray.h"
1822
#include "storage/shm_mq.h"

0 commit comments

Comments
 (0)