Skip to content

Commit c20d892

Browse files
authored
Merge pull request #68 from postgrespro/PGPRO-13320
Take into account the new structure of files implementing the EXPLAIN command
2 parents 389a262 + 5083b22 commit c20d892

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ PGFILEDESC = "pg_query_state - facility to track progress of plan execution"
1313
EXTRA_CLEAN = ./isolation_output $(EXTENSION)--$(EXTVERSION).sql \
1414
Dockerfile ./tests/*.pyc ./tmp_stress
1515

16-
ISOLATION = corner_cases
1716
ISOLATION_OPTS = --load-extension=pg_query_state
1817

1918
TAP_TESTS = 1

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"

signal_handler.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
#include "pg_query_state.h"
1212

1313
#include "commands/explain.h"
14+
#if PG_VERSION_NUM >= 180000
15+
#include "commands/explain_format.h"
16+
#endif
1417
#include "miscadmin.h"
1518
#if PG_VERSION_NUM >= 100000
1619
#include "pgstat.h"

0 commit comments

Comments
 (0)