• R/O
  • HTTP
  • SSH
  • HTTPS

pg_hint_plan: Commit

firtst release


Commit MetaInfo

Revision437a4fa587bf960c2447c06e64c2b1dda6c4403c (tree)
Time2021-10-06 11:57:29
AuthorKyotaro Horiguchi <horikyota.ntt@gmai...>
CommiterKyotaro Horiguchi

Log Message

Allow run make check of PostgreSQL with loading pg_hint.plan

Automatically switch environment when pg_hint_plan is installed as a
part of "make check" of PostgreSQL. That test is executed with the
following command line in the top directory of PostgreSQL tree.

make check EXTRA_INSTALL=<this directory> EXTRA_REGRESS_OPTS="--temp-config <this directory>/pg_hint_plan.conf"

make check-world fails for test that requires extra modules.

Change Summary

Incremental Difference

--- a/Makefile
+++ b/Makefile
@@ -18,9 +18,21 @@ DATA = pg_hint_plan--*.sql
1818
1919 EXTRA_CLEAN = sql/ut-fdw.sql expected/ut-fdw.out RPMS
2020
21+# Switch environment between standalone make and make check with
22+# EXTRA_INSTALL from PostgreSQL tree
23+# run the following command in the PG tree to run a regression test
24+# loading this module.
25+# $ make check EXTRA_INSTALL=<this directory> EXTRA_REGRESS_OPTS="--temp-config <this directory>/pg_hint_plan.conf"
26+ifeq ($(wildcard $(DESTDIR)/../src/Makefile.global),)
2127 PG_CONFIG = pg_config
2228 PGXS := $(shell $(PG_CONFIG) --pgxs)
2329 include $(PGXS)
30+else
31+subdir = `pwd`
32+top_builddir = $(DESTDIR)/..
33+include $(DESTDIR)/../src/Makefile.global
34+include $(DESTDIR)/../contrib/contrib-global.mk
35+endif
2436
2537 STARBALL14 = pg_hint_plan14-$(HINTPLANVER).tar.gz
2638 STARBALLS = $(STARBALL14)
Show on old repository browser