Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc9f90cb

Browse files
author
Maxim Orlov
committed
fixes in Makefile
In order to be ready to the meson build and be ableto support parallel installcheck do the following: - fix use of USE_MODULE_DB - isolation target should be included from the gloabl makefile - reorder vars to make it easy to read+ fix out of source check targettags: pg_query_state
1 parent277fbbe commitc9f90cb

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

‎Makefile

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,20 @@ EXTVERSION = 1.1
88
DATA = pg_query_state--1.0--1.1.sql
99
DATA_built =$(EXTENSION)--$(EXTVERSION).sql
1010
PGFILEDESC = "pg_query_state - facility to track progress of plan execution"
11-
EXTRA_REGRESS_OPTS=--temp-config=$(top_srcdir)/$(subdir)/test.conf
11+
1212
EXTRA_CLEAN = ./isolation_output$(EXTENSION)--$(EXTVERSION).sql\
1313
Dockerfile ./tests/*.pyc ./tmp_stress
1414

15+
ISOLATION = corner_cases
16+
#
17+
# PG11 doesn't support ISOLATION_OPTS variable. We have to use
18+
# "CREATE/DROP EXTENTION" command in spec.
19+
#
20+
# One day, when we'll get rid of PG11, it will be possible to uncomment this
21+
# variable and remove "CREATE EXTENTION" from spec.
22+
#
23+
# ISOLATION_OPTS = --load-extension=pg_query_state
24+
1525
ifdefUSE_PGXS
1626
PG_CONFIG ?= pg_config
1727
PGXS :=$(shell$(PG_CONFIG) --pgxs)
@@ -21,11 +31,17 @@ subdir = contrib/pg_query_state
2131
top_builddir = ../..
2232
include$(top_builddir)/src/Makefile.global
2333
include$(top_srcdir)/contrib/contrib-global.mk
34+
# need this to provide make check in case of "in source" build
35+
EXTRA_REGRESS_OPTS=--temp-config=$(top_srcdir)/$(subdir)/test.conf
2436
endif
2537

2638
$(EXTENSION)--$(EXTVERSION).sql: init.sql
2739
cat$^>$@
2840

41+
#
42+
# Make conditional targets to save backward compatibility with PG11.
43+
#
44+
ifeq ($(MAJORVERSION),11)
2945
ISOLATIONCHECKS = corner_cases
3046

3147
check: isolationcheck
@@ -46,3 +62,4 @@ submake-isolation:
4662
$(MAKE) -C$(top_builddir)/src/test/isolation all
4763

4864
temp-install: EXTRA_INSTALL=contrib/pg_query_state
65+
endif

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp