public inbox for [email protected]help / color / mirror / Atom feed
[PATCH 2/2] Don't setup tablespace directory while testing pg_upgrade 20+ messages / 2 participants [nested] [flat]
* [PATCH 2/2] Don't setup tablespace directory while testing pg_upgrade @ 2020-05-01 00:54 Kyotaro Horiguchi <[email protected]> 0 siblings, 0 replies; 20+ messages in thread From: Kyotaro Horiguchi @ 2020-05-01 00:54 UTC (permalink / raw) While make check of pg_upgrade, output directory is placed at a separate place from ordinary tmp_install. However Makefile reinitializes tablespace directory under the ordinary tmp_install, which may be being used by concurrent backend make check. The dedicate output directory doesn't need initialization so we just avoid tablespace initialization for the case. --- GNUmakefile.in | 4 ++-- src/bin/pg_upgrade/test.sh | 2 +- src/test/regress/GNUmakefile | 4 +++- src/tools/msvc/vcregress.pl | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/GNUmakefile.in b/GNUmakefile.in index ee636e3b50..943878e99b 100644 --- a/GNUmakefile.in +++ b/GNUmakefile.in @@ -63,8 +63,8 @@ distclean maintainer-clean: @rm -rf autom4te.cache/ rm -f config.cache config.log config.status GNUmakefile -check check-tests installcheck installcheck-parallel installcheck-tests: CHECKPREP_TOP=src/test/regress -check check-tests installcheck installcheck-parallel installcheck-tests: submake-generated-headers +check check-tests installcheck installcheck-parallel installcheck-parallel-notspsetup installcheck-tests: CHECKPREP_TOP=src/test/regress +check check-tests installcheck installcheck-parallel installcheck-parallel-notspsetup installcheck-tests: submake-generated-headers $(MAKE) -C src/test/regress $@ $(call recurse,check-world,src/test src/pl src/interfaces/ecpg contrib src/bin,check) diff --git a/src/bin/pg_upgrade/test.sh b/src/bin/pg_upgrade/test.sh index 10a28d8133..7be62bd49a 100644 --- a/src/bin/pg_upgrade/test.sh +++ b/src/bin/pg_upgrade/test.sh @@ -166,7 +166,7 @@ createdb "regression$dbname1" || createdb_status=$? createdb "regression$dbname2" || createdb_status=$? createdb "regression$dbname3" || createdb_status=$? -if "$MAKE" -C "$oldsrc" installcheck-parallel; then +if "$MAKE" -C "$oldsrc" installcheck-parallel-notspsetup; then oldpgversion=`psql -X -A -t -d regression -c "SHOW server_version_num"` # before dumping, get rid of objects not existing in later versions diff --git a/src/test/regress/GNUmakefile b/src/test/regress/GNUmakefile index 1a3164065f..b8681dbd17 100644 --- a/src/test/regress/GNUmakefile +++ b/src/test/regress/GNUmakefile @@ -137,7 +137,9 @@ check-tests: all tablespace-setup | temp-install installcheck: all tablespace-setup $(pg_regress_installcheck) $(REGRESS_OPTS) --schedule=$(srcdir)/serial_schedule $(EXTRA_TESTS) -installcheck-parallel: all tablespace-setup +installcheck-parallel: tablespace-setup installcheck-parallel-notspsetup + +installcheck-parallel-notspsetup: all $(pg_regress_installcheck) $(REGRESS_OPTS) --schedule=$(srcdir)/parallel_schedule $(MAXCONNOPT) $(EXTRA_TESTS) installcheck-tests: all tablespace-setup diff --git a/src/tools/msvc/vcregress.pl b/src/tools/msvc/vcregress.pl index 74d37a31de..4516db1f38 100644 --- a/src/tools/msvc/vcregress.pl +++ b/src/tools/msvc/vcregress.pl @@ -115,7 +115,6 @@ sub installcheck_internal "--no-locale"); push(@args, $maxconn) if $maxconn; push(@args, @EXTRA_REGRESS_OPTS); - CleanupTablespaceDirectory(); system(@args); my $status = $? >> 8; exit $status if $status; @@ -125,6 +124,7 @@ sub installcheck_internal sub installcheck { my $schedule = shift || 'serial'; + CleanupTablespaceDirectory(); installcheck_internal($schedule); return; } -- 2.18.2 ----Next_Part(Mon_May_11_17_13_54_2020_626)---- ^ permalink raw reply [nested|flat] 20+ messages in thread
* [PATCH 2/2] Don't setup tablespace directory while testing pg_upgrade @ 2020-05-01 00:54 Kyotaro Horiguchi <[email protected]> 0 siblings, 0 replies; 20+ messages in thread From: Kyotaro Horiguchi @ 2020-05-01 00:54 UTC (permalink / raw) While make check of pg_upgrade, output directory is placed at a separate place from ordinary tmp_install. However Makefile reinitializes tablespace directory under the ordinary tmp_install, which may be being used by concurrent backend make check. The dedicate output directory doesn't need initialization so we just avoid tablespace initialization for the case. --- GNUmakefile.in | 4 ++-- src/bin/pg_upgrade/test.sh | 2 +- src/test/regress/GNUmakefile | 4 +++- src/tools/msvc/vcregress.pl | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/GNUmakefile.in b/GNUmakefile.in index ee636e3b50..943878e99b 100644 --- a/GNUmakefile.in +++ b/GNUmakefile.in @@ -63,8 +63,8 @@ distclean maintainer-clean: @rm -rf autom4te.cache/ rm -f config.cache config.log config.status GNUmakefile -check check-tests installcheck installcheck-parallel installcheck-tests: CHECKPREP_TOP=src/test/regress -check check-tests installcheck installcheck-parallel installcheck-tests: submake-generated-headers +check check-tests installcheck installcheck-parallel installcheck-parallel-notspsetup installcheck-tests: CHECKPREP_TOP=src/test/regress +check check-tests installcheck installcheck-parallel installcheck-parallel-notspsetup installcheck-tests: submake-generated-headers $(MAKE) -C src/test/regress $@ $(call recurse,check-world,src/test src/pl src/interfaces/ecpg contrib src/bin,check) diff --git a/src/bin/pg_upgrade/test.sh b/src/bin/pg_upgrade/test.sh index 10a28d8133..7be62bd49a 100644 --- a/src/bin/pg_upgrade/test.sh +++ b/src/bin/pg_upgrade/test.sh @@ -166,7 +166,7 @@ createdb "regression$dbname1" || createdb_status=$? createdb "regression$dbname2" || createdb_status=$? createdb "regression$dbname3" || createdb_status=$? -if "$MAKE" -C "$oldsrc" installcheck-parallel; then +if "$MAKE" -C "$oldsrc" installcheck-parallel-notspsetup; then oldpgversion=`psql -X -A -t -d regression -c "SHOW server_version_num"` # before dumping, get rid of objects not existing in later versions diff --git a/src/test/regress/GNUmakefile b/src/test/regress/GNUmakefile index 1a3164065f..b8681dbd17 100644 --- a/src/test/regress/GNUmakefile +++ b/src/test/regress/GNUmakefile @@ -137,7 +137,9 @@ check-tests: all tablespace-setup | temp-install installcheck: all tablespace-setup $(pg_regress_installcheck) $(REGRESS_OPTS) --schedule=$(srcdir)/serial_schedule $(EXTRA_TESTS) -installcheck-parallel: all tablespace-setup +installcheck-parallel: tablespace-setup installcheck-parallel-notspsetup + +installcheck-parallel-notspsetup: all $(pg_regress_installcheck) $(REGRESS_OPTS) --schedule=$(srcdir)/parallel_schedule $(MAXCONNOPT) $(EXTRA_TESTS) installcheck-tests: all tablespace-setup diff --git a/src/tools/msvc/vcregress.pl b/src/tools/msvc/vcregress.pl index 74d37a31de..4516db1f38 100644 --- a/src/tools/msvc/vcregress.pl +++ b/src/tools/msvc/vcregress.pl @@ -115,7 +115,6 @@ sub installcheck_internal "--no-locale"); push(@args, $maxconn) if $maxconn; push(@args, @EXTRA_REGRESS_OPTS); - CleanupTablespaceDirectory(); system(@args); my $status = $? >> 8; exit $status if $status; @@ -125,6 +124,7 @@ sub installcheck_internal sub installcheck { my $schedule = shift || 'serial'; + CleanupTablespaceDirectory(); installcheck_internal($schedule); return; } -- 2.18.2 ----Next_Part(Mon_May_11_17_13_54_2020_626)---- ^ permalink raw reply [nested|flat] 20+ messages in thread
* [PATCH 2/2] Don't setup tablespace directory while testing pg_upgrade @ 2020-05-01 00:54 Kyotaro Horiguchi <[email protected]> 0 siblings, 0 replies; 20+ messages in thread From: Kyotaro Horiguchi @ 2020-05-01 00:54 UTC (permalink / raw) While make check of pg_upgrade, output directory is placed at a separate place from ordinary tmp_install. However Makefile reinitializes tablespace directory under the ordinary tmp_install, which may be being used by concurrent backend make check. The dedicate output directory doesn't need initialization so we just avoid tablespace initialization for the case. --- GNUmakefile.in | 4 ++-- src/bin/pg_upgrade/test.sh | 2 +- src/test/regress/GNUmakefile | 4 +++- src/tools/msvc/vcregress.pl | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/GNUmakefile.in b/GNUmakefile.in index ee636e3b50..943878e99b 100644 --- a/GNUmakefile.in +++ b/GNUmakefile.in @@ -63,8 +63,8 @@ distclean maintainer-clean: @rm -rf autom4te.cache/ rm -f config.cache config.log config.status GNUmakefile -check check-tests installcheck installcheck-parallel installcheck-tests: CHECKPREP_TOP=src/test/regress -check check-tests installcheck installcheck-parallel installcheck-tests: submake-generated-headers +check check-tests installcheck installcheck-parallel installcheck-parallel-notspsetup installcheck-tests: CHECKPREP_TOP=src/test/regress +check check-tests installcheck installcheck-parallel installcheck-parallel-notspsetup installcheck-tests: submake-generated-headers $(MAKE) -C src/test/regress $@ $(call recurse,check-world,src/test src/pl src/interfaces/ecpg contrib src/bin,check) diff --git a/src/bin/pg_upgrade/test.sh b/src/bin/pg_upgrade/test.sh index 10a28d8133..7be62bd49a 100644 --- a/src/bin/pg_upgrade/test.sh +++ b/src/bin/pg_upgrade/test.sh @@ -166,7 +166,7 @@ createdb "regression$dbname1" || createdb_status=$? createdb "regression$dbname2" || createdb_status=$? createdb "regression$dbname3" || createdb_status=$? -if "$MAKE" -C "$oldsrc" installcheck-parallel; then +if "$MAKE" -C "$oldsrc" installcheck-parallel-notspsetup; then oldpgversion=`psql -X -A -t -d regression -c "SHOW server_version_num"` # before dumping, get rid of objects not existing in later versions diff --git a/src/test/regress/GNUmakefile b/src/test/regress/GNUmakefile index 1a3164065f..b8681dbd17 100644 --- a/src/test/regress/GNUmakefile +++ b/src/test/regress/GNUmakefile @@ -137,7 +137,9 @@ check-tests: all tablespace-setup | temp-install installcheck: all tablespace-setup $(pg_regress_installcheck) $(REGRESS_OPTS) --schedule=$(srcdir)/serial_schedule $(EXTRA_TESTS) -installcheck-parallel: all tablespace-setup +installcheck-parallel: tablespace-setup installcheck-parallel-notspsetup + +installcheck-parallel-notspsetup: all $(pg_regress_installcheck) $(REGRESS_OPTS) --schedule=$(srcdir)/parallel_schedule $(MAXCONNOPT) $(EXTRA_TESTS) installcheck-tests: all tablespace-setup diff --git a/src/tools/msvc/vcregress.pl b/src/tools/msvc/vcregress.pl index 74d37a31de..4516db1f38 100644 --- a/src/tools/msvc/vcregress.pl +++ b/src/tools/msvc/vcregress.pl @@ -115,7 +115,6 @@ sub installcheck_internal "--no-locale"); push(@args, $maxconn) if $maxconn; push(@args, @EXTRA_REGRESS_OPTS); - CleanupTablespaceDirectory(); system(@args); my $status = $? >> 8; exit $status if $status; @@ -125,6 +124,7 @@ sub installcheck_internal sub installcheck { my $schedule = shift || 'serial'; + CleanupTablespaceDirectory(); installcheck_internal($schedule); return; } -- 2.18.2 ----Next_Part(Mon_May_11_17_13_54_2020_626)---- ^ permalink raw reply [nested|flat] 20+ messages in thread
* [PATCH 2/2] Don't setup tablespace directory while testing pg_upgrade @ 2020-05-01 00:54 Kyotaro Horiguchi <[email protected]> 0 siblings, 0 replies; 20+ messages in thread From: Kyotaro Horiguchi @ 2020-05-01 00:54 UTC (permalink / raw) While make check of pg_upgrade, output directory is placed at a separate place from ordinary tmp_install. However Makefile reinitializes tablespace directory under the ordinary tmp_install, which may be being used by concurrent backend make check. The dedicate output directory doesn't need initialization so we just avoid tablespace initialization for the case. --- GNUmakefile.in | 4 ++-- src/bin/pg_upgrade/test.sh | 2 +- src/test/regress/GNUmakefile | 4 +++- src/tools/msvc/vcregress.pl | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/GNUmakefile.in b/GNUmakefile.in index ee636e3b50..943878e99b 100644 --- a/GNUmakefile.in +++ b/GNUmakefile.in @@ -63,8 +63,8 @@ distclean maintainer-clean: @rm -rf autom4te.cache/ rm -f config.cache config.log config.status GNUmakefile -check check-tests installcheck installcheck-parallel installcheck-tests: CHECKPREP_TOP=src/test/regress -check check-tests installcheck installcheck-parallel installcheck-tests: submake-generated-headers +check check-tests installcheck installcheck-parallel installcheck-parallel-notspsetup installcheck-tests: CHECKPREP_TOP=src/test/regress +check check-tests installcheck installcheck-parallel installcheck-parallel-notspsetup installcheck-tests: submake-generated-headers $(MAKE) -C src/test/regress $@ $(call recurse,check-world,src/test src/pl src/interfaces/ecpg contrib src/bin,check) diff --git a/src/bin/pg_upgrade/test.sh b/src/bin/pg_upgrade/test.sh index 10a28d8133..7be62bd49a 100644 --- a/src/bin/pg_upgrade/test.sh +++ b/src/bin/pg_upgrade/test.sh @@ -166,7 +166,7 @@ createdb "regression$dbname1" || createdb_status=$? createdb "regression$dbname2" || createdb_status=$? createdb "regression$dbname3" || createdb_status=$? -if "$MAKE" -C "$oldsrc" installcheck-parallel; then +if "$MAKE" -C "$oldsrc" installcheck-parallel-notspsetup; then oldpgversion=`psql -X -A -t -d regression -c "SHOW server_version_num"` # before dumping, get rid of objects not existing in later versions diff --git a/src/test/regress/GNUmakefile b/src/test/regress/GNUmakefile index 1a3164065f..b8681dbd17 100644 --- a/src/test/regress/GNUmakefile +++ b/src/test/regress/GNUmakefile @@ -137,7 +137,9 @@ check-tests: all tablespace-setup | temp-install installcheck: all tablespace-setup $(pg_regress_installcheck) $(REGRESS_OPTS) --schedule=$(srcdir)/serial_schedule $(EXTRA_TESTS) -installcheck-parallel: all tablespace-setup +installcheck-parallel: tablespace-setup installcheck-parallel-notspsetup + +installcheck-parallel-notspsetup: all $(pg_regress_installcheck) $(REGRESS_OPTS) --schedule=$(srcdir)/parallel_schedule $(MAXCONNOPT) $(EXTRA_TESTS) installcheck-tests: all tablespace-setup diff --git a/src/tools/msvc/vcregress.pl b/src/tools/msvc/vcregress.pl index 74d37a31de..4516db1f38 100644 --- a/src/tools/msvc/vcregress.pl +++ b/src/tools/msvc/vcregress.pl @@ -115,7 +115,6 @@ sub installcheck_internal "--no-locale"); push(@args, $maxconn) if $maxconn; push(@args, @EXTRA_REGRESS_OPTS); - CleanupTablespaceDirectory(); system(@args); my $status = $? >> 8; exit $status if $status; @@ -125,6 +124,7 @@ sub installcheck_internal sub installcheck { my $schedule = shift || 'serial'; + CleanupTablespaceDirectory(); installcheck_internal($schedule); return; } -- 2.18.2 ----Next_Part(Mon_May_11_17_13_54_2020_626)---- ^ permalink raw reply [nested|flat] 20+ messages in thread
* [PATCH 2/2] Don't setup tablespace directory while testing pg_upgrade @ 2020-05-01 00:54 Kyotaro Horiguchi <[email protected]> 0 siblings, 0 replies; 20+ messages in thread From: Kyotaro Horiguchi @ 2020-05-01 00:54 UTC (permalink / raw) While make check of pg_upgrade, output directory is placed at a separate place from ordinary tmp_install. However Makefile reinitializes tablespace directory under the ordinary tmp_install, which may be being used by concurrent backend make check. The dedicate output directory doesn't need initialization so we just avoid tablespace initialization for the case. --- GNUmakefile.in | 4 ++-- src/bin/pg_upgrade/test.sh | 2 +- src/test/regress/GNUmakefile | 4 +++- src/tools/msvc/vcregress.pl | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/GNUmakefile.in b/GNUmakefile.in index ee636e3b50..943878e99b 100644 --- a/GNUmakefile.in +++ b/GNUmakefile.in @@ -63,8 +63,8 @@ distclean maintainer-clean: @rm -rf autom4te.cache/ rm -f config.cache config.log config.status GNUmakefile -check check-tests installcheck installcheck-parallel installcheck-tests: CHECKPREP_TOP=src/test/regress -check check-tests installcheck installcheck-parallel installcheck-tests: submake-generated-headers +check check-tests installcheck installcheck-parallel installcheck-parallel-notspsetup installcheck-tests: CHECKPREP_TOP=src/test/regress +check check-tests installcheck installcheck-parallel installcheck-parallel-notspsetup installcheck-tests: submake-generated-headers $(MAKE) -C src/test/regress $@ $(call recurse,check-world,src/test src/pl src/interfaces/ecpg contrib src/bin,check) diff --git a/src/bin/pg_upgrade/test.sh b/src/bin/pg_upgrade/test.sh index 10a28d8133..7be62bd49a 100644 --- a/src/bin/pg_upgrade/test.sh +++ b/src/bin/pg_upgrade/test.sh @@ -166,7 +166,7 @@ createdb "regression$dbname1" || createdb_status=$? createdb "regression$dbname2" || createdb_status=$? createdb "regression$dbname3" || createdb_status=$? -if "$MAKE" -C "$oldsrc" installcheck-parallel; then +if "$MAKE" -C "$oldsrc" installcheck-parallel-notspsetup; then oldpgversion=`psql -X -A -t -d regression -c "SHOW server_version_num"` # before dumping, get rid of objects not existing in later versions diff --git a/src/test/regress/GNUmakefile b/src/test/regress/GNUmakefile index 1a3164065f..b8681dbd17 100644 --- a/src/test/regress/GNUmakefile +++ b/src/test/regress/GNUmakefile @@ -137,7 +137,9 @@ check-tests: all tablespace-setup | temp-install installcheck: all tablespace-setup $(pg_regress_installcheck) $(REGRESS_OPTS) --schedule=$(srcdir)/serial_schedule $(EXTRA_TESTS) -installcheck-parallel: all tablespace-setup +installcheck-parallel: tablespace-setup installcheck-parallel-notspsetup + +installcheck-parallel-notspsetup: all $(pg_regress_installcheck) $(REGRESS_OPTS) --schedule=$(srcdir)/parallel_schedule $(MAXCONNOPT) $(EXTRA_TESTS) installcheck-tests: all tablespace-setup diff --git a/src/tools/msvc/vcregress.pl b/src/tools/msvc/vcregress.pl index 74d37a31de..4516db1f38 100644 --- a/src/tools/msvc/vcregress.pl +++ b/src/tools/msvc/vcregress.pl @@ -115,7 +115,6 @@ sub installcheck_internal "--no-locale"); push(@args, $maxconn) if $maxconn; push(@args, @EXTRA_REGRESS_OPTS); - CleanupTablespaceDirectory(); system(@args); my $status = $? >> 8; exit $status if $status; @@ -125,6 +124,7 @@ sub installcheck_internal sub installcheck { my $schedule = shift || 'serial'; + CleanupTablespaceDirectory(); installcheck_internal($schedule); return; } -- 2.18.2 ----Next_Part(Mon_May_11_17_13_54_2020_626)---- ^ permalink raw reply [nested|flat] 20+ messages in thread
* [PATCH 2/2] Don't setup tablespace directory while testing pg_upgrade @ 2020-05-01 00:54 Kyotaro Horiguchi <[email protected]> 0 siblings, 0 replies; 20+ messages in thread From: Kyotaro Horiguchi @ 2020-05-01 00:54 UTC (permalink / raw) While make check of pg_upgrade, output directory is placed at a separate place from ordinary tmp_install. However Makefile reinitializes tablespace directory under the ordinary tmp_install, which may be being used by concurrent backend make check. The dedicate output directory doesn't need initialization so we just avoid tablespace initialization for the case. --- GNUmakefile.in | 4 ++-- src/bin/pg_upgrade/test.sh | 2 +- src/test/regress/GNUmakefile | 4 +++- src/tools/msvc/vcregress.pl | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/GNUmakefile.in b/GNUmakefile.in index ee636e3b50..943878e99b 100644 --- a/GNUmakefile.in +++ b/GNUmakefile.in @@ -63,8 +63,8 @@ distclean maintainer-clean: @rm -rf autom4te.cache/ rm -f config.cache config.log config.status GNUmakefile -check check-tests installcheck installcheck-parallel installcheck-tests: CHECKPREP_TOP=src/test/regress -check check-tests installcheck installcheck-parallel installcheck-tests: submake-generated-headers +check check-tests installcheck installcheck-parallel installcheck-parallel-notspsetup installcheck-tests: CHECKPREP_TOP=src/test/regress +check check-tests installcheck installcheck-parallel installcheck-parallel-notspsetup installcheck-tests: submake-generated-headers $(MAKE) -C src/test/regress $@ $(call recurse,check-world,src/test src/pl src/interfaces/ecpg contrib src/bin,check) diff --git a/src/bin/pg_upgrade/test.sh b/src/bin/pg_upgrade/test.sh index 10a28d8133..7be62bd49a 100644 --- a/src/bin/pg_upgrade/test.sh +++ b/src/bin/pg_upgrade/test.sh @@ -166,7 +166,7 @@ createdb "regression$dbname1" || createdb_status=$? createdb "regression$dbname2" || createdb_status=$? createdb "regression$dbname3" || createdb_status=$? -if "$MAKE" -C "$oldsrc" installcheck-parallel; then +if "$MAKE" -C "$oldsrc" installcheck-parallel-notspsetup; then oldpgversion=`psql -X -A -t -d regression -c "SHOW server_version_num"` # before dumping, get rid of objects not existing in later versions diff --git a/src/test/regress/GNUmakefile b/src/test/regress/GNUmakefile index 1a3164065f..b8681dbd17 100644 --- a/src/test/regress/GNUmakefile +++ b/src/test/regress/GNUmakefile @@ -137,7 +137,9 @@ check-tests: all tablespace-setup | temp-install installcheck: all tablespace-setup $(pg_regress_installcheck) $(REGRESS_OPTS) --schedule=$(srcdir)/serial_schedule $(EXTRA_TESTS) -installcheck-parallel: all tablespace-setup +installcheck-parallel: tablespace-setup installcheck-parallel-notspsetup + +installcheck-parallel-notspsetup: all $(pg_regress_installcheck) $(REGRESS_OPTS) --schedule=$(srcdir)/parallel_schedule $(MAXCONNOPT) $(EXTRA_TESTS) installcheck-tests: all tablespace-setup diff --git a/src/tools/msvc/vcregress.pl b/src/tools/msvc/vcregress.pl index 74d37a31de..4516db1f38 100644 --- a/src/tools/msvc/vcregress.pl +++ b/src/tools/msvc/vcregress.pl @@ -115,7 +115,6 @@ sub installcheck_internal "--no-locale"); push(@args, $maxconn) if $maxconn; push(@args, @EXTRA_REGRESS_OPTS); - CleanupTablespaceDirectory(); system(@args); my $status = $? >> 8; exit $status if $status; @@ -125,6 +124,7 @@ sub installcheck_internal sub installcheck { my $schedule = shift || 'serial'; + CleanupTablespaceDirectory(); installcheck_internal($schedule); return; } -- 2.18.2 ----Next_Part(Mon_May_11_17_13_54_2020_626)---- ^ permalink raw reply [nested|flat] 20+ messages in thread
* [PATCH 2/2] Don't setup tablespace directory while testing pg_upgrade @ 2020-05-01 00:54 Kyotaro Horiguchi <[email protected]> 0 siblings, 0 replies; 20+ messages in thread From: Kyotaro Horiguchi @ 2020-05-01 00:54 UTC (permalink / raw) While make check of pg_upgrade, output directory is placed at a separate place from ordinary tmp_install. However Makefile reinitializes tablespace directory under the ordinary tmp_install, which may be being used by concurrent backend make check. The dedicate output directory doesn't need initialization so we just avoid tablespace initialization for the case. --- GNUmakefile.in | 4 ++-- src/bin/pg_upgrade/test.sh | 2 +- src/test/regress/GNUmakefile | 4 +++- src/tools/msvc/vcregress.pl | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/GNUmakefile.in b/GNUmakefile.in index ee636e3b50..943878e99b 100644 --- a/GNUmakefile.in +++ b/GNUmakefile.in @@ -63,8 +63,8 @@ distclean maintainer-clean: @rm -rf autom4te.cache/ rm -f config.cache config.log config.status GNUmakefile -check check-tests installcheck installcheck-parallel installcheck-tests: CHECKPREP_TOP=src/test/regress -check check-tests installcheck installcheck-parallel installcheck-tests: submake-generated-headers +check check-tests installcheck installcheck-parallel installcheck-parallel-notspsetup installcheck-tests: CHECKPREP_TOP=src/test/regress +check check-tests installcheck installcheck-parallel installcheck-parallel-notspsetup installcheck-tests: submake-generated-headers $(MAKE) -C src/test/regress $@ $(call recurse,check-world,src/test src/pl src/interfaces/ecpg contrib src/bin,check) diff --git a/src/bin/pg_upgrade/test.sh b/src/bin/pg_upgrade/test.sh index 10a28d8133..7be62bd49a 100644 --- a/src/bin/pg_upgrade/test.sh +++ b/src/bin/pg_upgrade/test.sh @@ -166,7 +166,7 @@ createdb "regression$dbname1" || createdb_status=$? createdb "regression$dbname2" || createdb_status=$? createdb "regression$dbname3" || createdb_status=$? -if "$MAKE" -C "$oldsrc" installcheck-parallel; then +if "$MAKE" -C "$oldsrc" installcheck-parallel-notspsetup; then oldpgversion=`psql -X -A -t -d regression -c "SHOW server_version_num"` # before dumping, get rid of objects not existing in later versions diff --git a/src/test/regress/GNUmakefile b/src/test/regress/GNUmakefile index 1a3164065f..b8681dbd17 100644 --- a/src/test/regress/GNUmakefile +++ b/src/test/regress/GNUmakefile @@ -137,7 +137,9 @@ check-tests: all tablespace-setup | temp-install installcheck: all tablespace-setup $(pg_regress_installcheck) $(REGRESS_OPTS) --schedule=$(srcdir)/serial_schedule $(EXTRA_TESTS) -installcheck-parallel: all tablespace-setup +installcheck-parallel: tablespace-setup installcheck-parallel-notspsetup + +installcheck-parallel-notspsetup: all $(pg_regress_installcheck) $(REGRESS_OPTS) --schedule=$(srcdir)/parallel_schedule $(MAXCONNOPT) $(EXTRA_TESTS) installcheck-tests: all tablespace-setup diff --git a/src/tools/msvc/vcregress.pl b/src/tools/msvc/vcregress.pl index 74d37a31de..4516db1f38 100644 --- a/src/tools/msvc/vcregress.pl +++ b/src/tools/msvc/vcregress.pl @@ -115,7 +115,6 @@ sub installcheck_internal "--no-locale"); push(@args, $maxconn) if $maxconn; push(@args, @EXTRA_REGRESS_OPTS); - CleanupTablespaceDirectory(); system(@args); my $status = $? >> 8; exit $status if $status; @@ -125,6 +124,7 @@ sub installcheck_internal sub installcheck { my $schedule = shift || 'serial'; + CleanupTablespaceDirectory(); installcheck_internal($schedule); return; } -- 2.18.2 ----Next_Part(Mon_May_11_17_13_54_2020_626)---- ^ permalink raw reply [nested|flat] 20+ messages in thread
* [PATCH 2/2] Don't setup tablespace directory while testing pg_upgrade @ 2020-05-01 00:54 Kyotaro Horiguchi <[email protected]> 0 siblings, 0 replies; 20+ messages in thread From: Kyotaro Horiguchi @ 2020-05-01 00:54 UTC (permalink / raw) While make check of pg_upgrade, output directory is placed at a separate place from ordinary tmp_install. However Makefile reinitializes tablespace directory under the ordinary tmp_install, which may be being used by concurrent backend make check. The dedicate output directory doesn't need initialization so we just avoid tablespace initialization for the case. --- GNUmakefile.in | 4 ++-- src/bin/pg_upgrade/test.sh | 2 +- src/test/regress/GNUmakefile | 4 +++- src/tools/msvc/vcregress.pl | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/GNUmakefile.in b/GNUmakefile.in index ee636e3b50..943878e99b 100644 --- a/GNUmakefile.in +++ b/GNUmakefile.in @@ -63,8 +63,8 @@ distclean maintainer-clean: @rm -rf autom4te.cache/ rm -f config.cache config.log config.status GNUmakefile -check check-tests installcheck installcheck-parallel installcheck-tests: CHECKPREP_TOP=src/test/regress -check check-tests installcheck installcheck-parallel installcheck-tests: submake-generated-headers +check check-tests installcheck installcheck-parallel installcheck-parallel-notspsetup installcheck-tests: CHECKPREP_TOP=src/test/regress +check check-tests installcheck installcheck-parallel installcheck-parallel-notspsetup installcheck-tests: submake-generated-headers $(MAKE) -C src/test/regress $@ $(call recurse,check-world,src/test src/pl src/interfaces/ecpg contrib src/bin,check) diff --git a/src/bin/pg_upgrade/test.sh b/src/bin/pg_upgrade/test.sh index 10a28d8133..7be62bd49a 100644 --- a/src/bin/pg_upgrade/test.sh +++ b/src/bin/pg_upgrade/test.sh @@ -166,7 +166,7 @@ createdb "regression$dbname1" || createdb_status=$? createdb "regression$dbname2" || createdb_status=$? createdb "regression$dbname3" || createdb_status=$? -if "$MAKE" -C "$oldsrc" installcheck-parallel; then +if "$MAKE" -C "$oldsrc" installcheck-parallel-notspsetup; then oldpgversion=`psql -X -A -t -d regression -c "SHOW server_version_num"` # before dumping, get rid of objects not existing in later versions diff --git a/src/test/regress/GNUmakefile b/src/test/regress/GNUmakefile index 1a3164065f..b8681dbd17 100644 --- a/src/test/regress/GNUmakefile +++ b/src/test/regress/GNUmakefile @@ -137,7 +137,9 @@ check-tests: all tablespace-setup | temp-install installcheck: all tablespace-setup $(pg_regress_installcheck) $(REGRESS_OPTS) --schedule=$(srcdir)/serial_schedule $(EXTRA_TESTS) -installcheck-parallel: all tablespace-setup +installcheck-parallel: tablespace-setup installcheck-parallel-notspsetup + +installcheck-parallel-notspsetup: all $(pg_regress_installcheck) $(REGRESS_OPTS) --schedule=$(srcdir)/parallel_schedule $(MAXCONNOPT) $(EXTRA_TESTS) installcheck-tests: all tablespace-setup diff --git a/src/tools/msvc/vcregress.pl b/src/tools/msvc/vcregress.pl index 74d37a31de..4516db1f38 100644 --- a/src/tools/msvc/vcregress.pl +++ b/src/tools/msvc/vcregress.pl @@ -115,7 +115,6 @@ sub installcheck_internal "--no-locale"); push(@args, $maxconn) if $maxconn; push(@args, @EXTRA_REGRESS_OPTS); - CleanupTablespaceDirectory(); system(@args); my $status = $? >> 8; exit $status if $status; @@ -125,6 +124,7 @@ sub installcheck_internal sub installcheck { my $schedule = shift || 'serial'; + CleanupTablespaceDirectory(); installcheck_internal($schedule); return; } -- 2.18.2 ----Next_Part(Mon_May_11_17_13_54_2020_626)---- ^ permalink raw reply [nested|flat] 20+ messages in thread
* [PATCH 2/2] Don't setup tablespace directory while testing pg_upgrade @ 2020-05-01 00:54 Kyotaro Horiguchi <[email protected]> 0 siblings, 0 replies; 20+ messages in thread From: Kyotaro Horiguchi @ 2020-05-01 00:54 UTC (permalink / raw) While make check of pg_upgrade, output directory is placed at a separate place from ordinary tmp_install. However Makefile reinitializes tablespace directory under the ordinary tmp_install, which may be being used by concurrent backend make check. The dedicate output directory doesn't need initialization so we just avoid tablespace initialization for the case. --- GNUmakefile.in | 4 ++-- src/bin/pg_upgrade/test.sh | 2 +- src/test/regress/GNUmakefile | 4 +++- src/tools/msvc/vcregress.pl | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/GNUmakefile.in b/GNUmakefile.in index ee636e3b50..943878e99b 100644 --- a/GNUmakefile.in +++ b/GNUmakefile.in @@ -63,8 +63,8 @@ distclean maintainer-clean: @rm -rf autom4te.cache/ rm -f config.cache config.log config.status GNUmakefile -check check-tests installcheck installcheck-parallel installcheck-tests: CHECKPREP_TOP=src/test/regress -check check-tests installcheck installcheck-parallel installcheck-tests: submake-generated-headers +check check-tests installcheck installcheck-parallel installcheck-parallel-notspsetup installcheck-tests: CHECKPREP_TOP=src/test/regress +check check-tests installcheck installcheck-parallel installcheck-parallel-notspsetup installcheck-tests: submake-generated-headers $(MAKE) -C src/test/regress $@ $(call recurse,check-world,src/test src/pl src/interfaces/ecpg contrib src/bin,check) diff --git a/src/bin/pg_upgrade/test.sh b/src/bin/pg_upgrade/test.sh index 10a28d8133..7be62bd49a 100644 --- a/src/bin/pg_upgrade/test.sh +++ b/src/bin/pg_upgrade/test.sh @@ -166,7 +166,7 @@ createdb "regression$dbname1" || createdb_status=$? createdb "regression$dbname2" || createdb_status=$? createdb "regression$dbname3" || createdb_status=$? -if "$MAKE" -C "$oldsrc" installcheck-parallel; then +if "$MAKE" -C "$oldsrc" installcheck-parallel-notspsetup; then oldpgversion=`psql -X -A -t -d regression -c "SHOW server_version_num"` # before dumping, get rid of objects not existing in later versions diff --git a/src/test/regress/GNUmakefile b/src/test/regress/GNUmakefile index 1a3164065f..b8681dbd17 100644 --- a/src/test/regress/GNUmakefile +++ b/src/test/regress/GNUmakefile @@ -137,7 +137,9 @@ check-tests: all tablespace-setup | temp-install installcheck: all tablespace-setup $(pg_regress_installcheck) $(REGRESS_OPTS) --schedule=$(srcdir)/serial_schedule $(EXTRA_TESTS) -installcheck-parallel: all tablespace-setup +installcheck-parallel: tablespace-setup installcheck-parallel-notspsetup + +installcheck-parallel-notspsetup: all $(pg_regress_installcheck) $(REGRESS_OPTS) --schedule=$(srcdir)/parallel_schedule $(MAXCONNOPT) $(EXTRA_TESTS) installcheck-tests: all tablespace-setup diff --git a/src/tools/msvc/vcregress.pl b/src/tools/msvc/vcregress.pl index 74d37a31de..4516db1f38 100644 --- a/src/tools/msvc/vcregress.pl +++ b/src/tools/msvc/vcregress.pl @@ -115,7 +115,6 @@ sub installcheck_internal "--no-locale"); push(@args, $maxconn) if $maxconn; push(@args, @EXTRA_REGRESS_OPTS); - CleanupTablespaceDirectory(); system(@args); my $status = $? >> 8; exit $status if $status; @@ -125,6 +124,7 @@ sub installcheck_internal sub installcheck { my $schedule = shift || 'serial'; + CleanupTablespaceDirectory(); installcheck_internal($schedule); return; } -- 2.18.2 ----Next_Part(Mon_May_11_17_13_54_2020_626)---- ^ permalink raw reply [nested|flat] 20+ messages in thread
* [PATCH 2/2] Don't setup tablespace directory while testing pg_upgrade @ 2020-05-01 00:54 Kyotaro Horiguchi <[email protected]> 0 siblings, 0 replies; 20+ messages in thread From: Kyotaro Horiguchi @ 2020-05-01 00:54 UTC (permalink / raw) While make check of pg_upgrade, output directory is placed at a separate place from ordinary tmp_install. However Makefile reinitializes tablespace directory under the ordinary tmp_install, which may be being used by concurrent backend make check. The dedicate output directory doesn't need initialization so we just avoid tablespace initialization for the case. --- GNUmakefile.in | 4 ++-- src/bin/pg_upgrade/test.sh | 2 +- src/test/regress/GNUmakefile | 4 +++- src/tools/msvc/vcregress.pl | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/GNUmakefile.in b/GNUmakefile.in index ee636e3b50..943878e99b 100644 --- a/GNUmakefile.in +++ b/GNUmakefile.in @@ -63,8 +63,8 @@ distclean maintainer-clean: @rm -rf autom4te.cache/ rm -f config.cache config.log config.status GNUmakefile -check check-tests installcheck installcheck-parallel installcheck-tests: CHECKPREP_TOP=src/test/regress -check check-tests installcheck installcheck-parallel installcheck-tests: submake-generated-headers +check check-tests installcheck installcheck-parallel installcheck-parallel-notspsetup installcheck-tests: CHECKPREP_TOP=src/test/regress +check check-tests installcheck installcheck-parallel installcheck-parallel-notspsetup installcheck-tests: submake-generated-headers $(MAKE) -C src/test/regress $@ $(call recurse,check-world,src/test src/pl src/interfaces/ecpg contrib src/bin,check) diff --git a/src/bin/pg_upgrade/test.sh b/src/bin/pg_upgrade/test.sh index 10a28d8133..7be62bd49a 100644 --- a/src/bin/pg_upgrade/test.sh +++ b/src/bin/pg_upgrade/test.sh @@ -166,7 +166,7 @@ createdb "regression$dbname1" || createdb_status=$? createdb "regression$dbname2" || createdb_status=$? createdb "regression$dbname3" || createdb_status=$? -if "$MAKE" -C "$oldsrc" installcheck-parallel; then +if "$MAKE" -C "$oldsrc" installcheck-parallel-notspsetup; then oldpgversion=`psql -X -A -t -d regression -c "SHOW server_version_num"` # before dumping, get rid of objects not existing in later versions diff --git a/src/test/regress/GNUmakefile b/src/test/regress/GNUmakefile index 1a3164065f..b8681dbd17 100644 --- a/src/test/regress/GNUmakefile +++ b/src/test/regress/GNUmakefile @@ -137,7 +137,9 @@ check-tests: all tablespace-setup | temp-install installcheck: all tablespace-setup $(pg_regress_installcheck) $(REGRESS_OPTS) --schedule=$(srcdir)/serial_schedule $(EXTRA_TESTS) -installcheck-parallel: all tablespace-setup +installcheck-parallel: tablespace-setup installcheck-parallel-notspsetup + +installcheck-parallel-notspsetup: all $(pg_regress_installcheck) $(REGRESS_OPTS) --schedule=$(srcdir)/parallel_schedule $(MAXCONNOPT) $(EXTRA_TESTS) installcheck-tests: all tablespace-setup diff --git a/src/tools/msvc/vcregress.pl b/src/tools/msvc/vcregress.pl index 74d37a31de..4516db1f38 100644 --- a/src/tools/msvc/vcregress.pl +++ b/src/tools/msvc/vcregress.pl @@ -115,7 +115,6 @@ sub installcheck_internal "--no-locale"); push(@args, $maxconn) if $maxconn; push(@args, @EXTRA_REGRESS_OPTS); - CleanupTablespaceDirectory(); system(@args); my $status = $? >> 8; exit $status if $status; @@ -125,6 +124,7 @@ sub installcheck_internal sub installcheck { my $schedule = shift || 'serial'; + CleanupTablespaceDirectory(); installcheck_internal($schedule); return; } -- 2.18.2 ----Next_Part(Mon_May_11_17_13_54_2020_626)---- ^ permalink raw reply [nested|flat] 20+ messages in thread
* [PATCH 2/2] Don't setup tablespace directory while testing pg_upgrade @ 2020-05-01 00:54 Kyotaro Horiguchi <[email protected]> 0 siblings, 0 replies; 20+ messages in thread From: Kyotaro Horiguchi @ 2020-05-01 00:54 UTC (permalink / raw) While make check of pg_upgrade, output directory is placed at a separate place from ordinary tmp_install. However Makefile reinitializes tablespace directory under the ordinary tmp_install, which may be being used by concurrent backend make check. The dedicate output directory doesn't need initialization so we just avoid tablespace initialization for the case. --- GNUmakefile.in | 4 ++-- src/bin/pg_upgrade/test.sh | 2 +- src/test/regress/GNUmakefile | 4 +++- src/tools/msvc/vcregress.pl | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/GNUmakefile.in b/GNUmakefile.in index ee636e3b50..943878e99b 100644 --- a/GNUmakefile.in +++ b/GNUmakefile.in @@ -63,8 +63,8 @@ distclean maintainer-clean: @rm -rf autom4te.cache/ rm -f config.cache config.log config.status GNUmakefile -check check-tests installcheck installcheck-parallel installcheck-tests: CHECKPREP_TOP=src/test/regress -check check-tests installcheck installcheck-parallel installcheck-tests: submake-generated-headers +check check-tests installcheck installcheck-parallel installcheck-parallel-notspsetup installcheck-tests: CHECKPREP_TOP=src/test/regress +check check-tests installcheck installcheck-parallel installcheck-parallel-notspsetup installcheck-tests: submake-generated-headers $(MAKE) -C src/test/regress $@ $(call recurse,check-world,src/test src/pl src/interfaces/ecpg contrib src/bin,check) diff --git a/src/bin/pg_upgrade/test.sh b/src/bin/pg_upgrade/test.sh index 10a28d8133..7be62bd49a 100644 --- a/src/bin/pg_upgrade/test.sh +++ b/src/bin/pg_upgrade/test.sh @@ -166,7 +166,7 @@ createdb "regression$dbname1" || createdb_status=$? createdb "regression$dbname2" || createdb_status=$? createdb "regression$dbname3" || createdb_status=$? -if "$MAKE" -C "$oldsrc" installcheck-parallel; then +if "$MAKE" -C "$oldsrc" installcheck-parallel-notspsetup; then oldpgversion=`psql -X -A -t -d regression -c "SHOW server_version_num"` # before dumping, get rid of objects not existing in later versions diff --git a/src/test/regress/GNUmakefile b/src/test/regress/GNUmakefile index 1a3164065f..b8681dbd17 100644 --- a/src/test/regress/GNUmakefile +++ b/src/test/regress/GNUmakefile @@ -137,7 +137,9 @@ check-tests: all tablespace-setup | temp-install installcheck: all tablespace-setup $(pg_regress_installcheck) $(REGRESS_OPTS) --schedule=$(srcdir)/serial_schedule $(EXTRA_TESTS) -installcheck-parallel: all tablespace-setup +installcheck-parallel: tablespace-setup installcheck-parallel-notspsetup + +installcheck-parallel-notspsetup: all $(pg_regress_installcheck) $(REGRESS_OPTS) --schedule=$(srcdir)/parallel_schedule $(MAXCONNOPT) $(EXTRA_TESTS) installcheck-tests: all tablespace-setup diff --git a/src/tools/msvc/vcregress.pl b/src/tools/msvc/vcregress.pl index 74d37a31de..4516db1f38 100644 --- a/src/tools/msvc/vcregress.pl +++ b/src/tools/msvc/vcregress.pl @@ -115,7 +115,6 @@ sub installcheck_internal "--no-locale"); push(@args, $maxconn) if $maxconn; push(@args, @EXTRA_REGRESS_OPTS); - CleanupTablespaceDirectory(); system(@args); my $status = $? >> 8; exit $status if $status; @@ -125,6 +124,7 @@ sub installcheck_internal sub installcheck { my $schedule = shift || 'serial'; + CleanupTablespaceDirectory(); installcheck_internal($schedule); return; } -- 2.18.2 ----Next_Part(Mon_May_11_17_13_54_2020_626)---- ^ permalink raw reply [nested|flat] 20+ messages in thread
* [PATCH 2/2] Don't setup tablespace directory while testing pg_upgrade @ 2020-05-01 00:54 Kyotaro Horiguchi <[email protected]> 0 siblings, 0 replies; 20+ messages in thread From: Kyotaro Horiguchi @ 2020-05-01 00:54 UTC (permalink / raw) While make check of pg_upgrade, output directory is placed at a separate place from ordinary tmp_install. However Makefile reinitializes tablespace directory under the ordinary tmp_install, which may be being used by concurrent backend make check. The dedicate output directory doesn't need initialization so we just avoid tablespace initialization for the case. --- GNUmakefile.in | 4 ++-- src/bin/pg_upgrade/test.sh | 2 +- src/test/regress/GNUmakefile | 4 +++- src/tools/msvc/vcregress.pl | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/GNUmakefile.in b/GNUmakefile.in index ee636e3b50..943878e99b 100644 --- a/GNUmakefile.in +++ b/GNUmakefile.in @@ -63,8 +63,8 @@ distclean maintainer-clean: @rm -rf autom4te.cache/ rm -f config.cache config.log config.status GNUmakefile -check check-tests installcheck installcheck-parallel installcheck-tests: CHECKPREP_TOP=src/test/regress -check check-tests installcheck installcheck-parallel installcheck-tests: submake-generated-headers +check check-tests installcheck installcheck-parallel installcheck-parallel-notspsetup installcheck-tests: CHECKPREP_TOP=src/test/regress +check check-tests installcheck installcheck-parallel installcheck-parallel-notspsetup installcheck-tests: submake-generated-headers $(MAKE) -C src/test/regress $@ $(call recurse,check-world,src/test src/pl src/interfaces/ecpg contrib src/bin,check) diff --git a/src/bin/pg_upgrade/test.sh b/src/bin/pg_upgrade/test.sh index 10a28d8133..7be62bd49a 100644 --- a/src/bin/pg_upgrade/test.sh +++ b/src/bin/pg_upgrade/test.sh @@ -166,7 +166,7 @@ createdb "regression$dbname1" || createdb_status=$? createdb "regression$dbname2" || createdb_status=$? createdb "regression$dbname3" || createdb_status=$? -if "$MAKE" -C "$oldsrc" installcheck-parallel; then +if "$MAKE" -C "$oldsrc" installcheck-parallel-notspsetup; then oldpgversion=`psql -X -A -t -d regression -c "SHOW server_version_num"` # before dumping, get rid of objects not existing in later versions diff --git a/src/test/regress/GNUmakefile b/src/test/regress/GNUmakefile index 1a3164065f..b8681dbd17 100644 --- a/src/test/regress/GNUmakefile +++ b/src/test/regress/GNUmakefile @@ -137,7 +137,9 @@ check-tests: all tablespace-setup | temp-install installcheck: all tablespace-setup $(pg_regress_installcheck) $(REGRESS_OPTS) --schedule=$(srcdir)/serial_schedule $(EXTRA_TESTS) -installcheck-parallel: all tablespace-setup +installcheck-parallel: tablespace-setup installcheck-parallel-notspsetup + +installcheck-parallel-notspsetup: all $(pg_regress_installcheck) $(REGRESS_OPTS) --schedule=$(srcdir)/parallel_schedule $(MAXCONNOPT) $(EXTRA_TESTS) installcheck-tests: all tablespace-setup diff --git a/src/tools/msvc/vcregress.pl b/src/tools/msvc/vcregress.pl index 74d37a31de..4516db1f38 100644 --- a/src/tools/msvc/vcregress.pl +++ b/src/tools/msvc/vcregress.pl @@ -115,7 +115,6 @@ sub installcheck_internal "--no-locale"); push(@args, $maxconn) if $maxconn; push(@args, @EXTRA_REGRESS_OPTS); - CleanupTablespaceDirectory(); system(@args); my $status = $? >> 8; exit $status if $status; @@ -125,6 +124,7 @@ sub installcheck_internal sub installcheck { my $schedule = shift || 'serial'; + CleanupTablespaceDirectory(); installcheck_internal($schedule); return; } -- 2.18.2 ----Next_Part(Mon_May_11_17_13_54_2020_626)---- ^ permalink raw reply [nested|flat] 20+ messages in thread
* [PATCH 2/2] Don't setup tablespace directory while testing pg_upgrade @ 2020-05-01 00:54 Kyotaro Horiguchi <[email protected]> 0 siblings, 0 replies; 20+ messages in thread From: Kyotaro Horiguchi @ 2020-05-01 00:54 UTC (permalink / raw) While make check of pg_upgrade, output directory is placed at a separate place from ordinary tmp_install. However Makefile reinitializes tablespace directory under the ordinary tmp_install, which may be being used by concurrent backend make check. The dedicate output directory doesn't need initialization so we just avoid tablespace initialization for the case. --- GNUmakefile.in | 4 ++-- src/bin/pg_upgrade/test.sh | 2 +- src/test/regress/GNUmakefile | 4 +++- src/tools/msvc/vcregress.pl | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/GNUmakefile.in b/GNUmakefile.in index ee636e3b50..943878e99b 100644 --- a/GNUmakefile.in +++ b/GNUmakefile.in @@ -63,8 +63,8 @@ distclean maintainer-clean: @rm -rf autom4te.cache/ rm -f config.cache config.log config.status GNUmakefile -check check-tests installcheck installcheck-parallel installcheck-tests: CHECKPREP_TOP=src/test/regress -check check-tests installcheck installcheck-parallel installcheck-tests: submake-generated-headers +check check-tests installcheck installcheck-parallel installcheck-parallel-notspsetup installcheck-tests: CHECKPREP_TOP=src/test/regress +check check-tests installcheck installcheck-parallel installcheck-parallel-notspsetup installcheck-tests: submake-generated-headers $(MAKE) -C src/test/regress $@ $(call recurse,check-world,src/test src/pl src/interfaces/ecpg contrib src/bin,check) diff --git a/src/bin/pg_upgrade/test.sh b/src/bin/pg_upgrade/test.sh index 10a28d8133..7be62bd49a 100644 --- a/src/bin/pg_upgrade/test.sh +++ b/src/bin/pg_upgrade/test.sh @@ -166,7 +166,7 @@ createdb "regression$dbname1" || createdb_status=$? createdb "regression$dbname2" || createdb_status=$? createdb "regression$dbname3" || createdb_status=$? -if "$MAKE" -C "$oldsrc" installcheck-parallel; then +if "$MAKE" -C "$oldsrc" installcheck-parallel-notspsetup; then oldpgversion=`psql -X -A -t -d regression -c "SHOW server_version_num"` # before dumping, get rid of objects not existing in later versions diff --git a/src/test/regress/GNUmakefile b/src/test/regress/GNUmakefile index 1a3164065f..b8681dbd17 100644 --- a/src/test/regress/GNUmakefile +++ b/src/test/regress/GNUmakefile @@ -137,7 +137,9 @@ check-tests: all tablespace-setup | temp-install installcheck: all tablespace-setup $(pg_regress_installcheck) $(REGRESS_OPTS) --schedule=$(srcdir)/serial_schedule $(EXTRA_TESTS) -installcheck-parallel: all tablespace-setup +installcheck-parallel: tablespace-setup installcheck-parallel-notspsetup + +installcheck-parallel-notspsetup: all $(pg_regress_installcheck) $(REGRESS_OPTS) --schedule=$(srcdir)/parallel_schedule $(MAXCONNOPT) $(EXTRA_TESTS) installcheck-tests: all tablespace-setup diff --git a/src/tools/msvc/vcregress.pl b/src/tools/msvc/vcregress.pl index 74d37a31de..4516db1f38 100644 --- a/src/tools/msvc/vcregress.pl +++ b/src/tools/msvc/vcregress.pl @@ -115,7 +115,6 @@ sub installcheck_internal "--no-locale"); push(@args, $maxconn) if $maxconn; push(@args, @EXTRA_REGRESS_OPTS); - CleanupTablespaceDirectory(); system(@args); my $status = $? >> 8; exit $status if $status; @@ -125,6 +124,7 @@ sub installcheck_internal sub installcheck { my $schedule = shift || 'serial'; + CleanupTablespaceDirectory(); installcheck_internal($schedule); return; } -- 2.18.2 ----Next_Part(Mon_May_11_17_13_54_2020_626)---- ^ permalink raw reply [nested|flat] 20+ messages in thread
* [PATCH 2/2] Don't setup tablespace directory while testing pg_upgrade @ 2020-05-01 00:54 Kyotaro Horiguchi <[email protected]> 0 siblings, 0 replies; 20+ messages in thread From: Kyotaro Horiguchi @ 2020-05-01 00:54 UTC (permalink / raw) While make check of pg_upgrade, output directory is placed at a separate place from ordinary tmp_install. However Makefile reinitializes tablespace directory under the ordinary tmp_install, which may be being used by concurrent backend make check. The dedicate output directory doesn't need initialization so we just avoid tablespace initialization for the case. --- GNUmakefile.in | 4 ++-- src/bin/pg_upgrade/test.sh | 2 +- src/test/regress/GNUmakefile | 4 +++- src/tools/msvc/vcregress.pl | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/GNUmakefile.in b/GNUmakefile.in index ee636e3b50..943878e99b 100644 --- a/GNUmakefile.in +++ b/GNUmakefile.in @@ -63,8 +63,8 @@ distclean maintainer-clean: @rm -rf autom4te.cache/ rm -f config.cache config.log config.status GNUmakefile -check check-tests installcheck installcheck-parallel installcheck-tests: CHECKPREP_TOP=src/test/regress -check check-tests installcheck installcheck-parallel installcheck-tests: submake-generated-headers +check check-tests installcheck installcheck-parallel installcheck-parallel-notspsetup installcheck-tests: CHECKPREP_TOP=src/test/regress +check check-tests installcheck installcheck-parallel installcheck-parallel-notspsetup installcheck-tests: submake-generated-headers $(MAKE) -C src/test/regress $@ $(call recurse,check-world,src/test src/pl src/interfaces/ecpg contrib src/bin,check) diff --git a/src/bin/pg_upgrade/test.sh b/src/bin/pg_upgrade/test.sh index 10a28d8133..7be62bd49a 100644 --- a/src/bin/pg_upgrade/test.sh +++ b/src/bin/pg_upgrade/test.sh @@ -166,7 +166,7 @@ createdb "regression$dbname1" || createdb_status=$? createdb "regression$dbname2" || createdb_status=$? createdb "regression$dbname3" || createdb_status=$? -if "$MAKE" -C "$oldsrc" installcheck-parallel; then +if "$MAKE" -C "$oldsrc" installcheck-parallel-notspsetup; then oldpgversion=`psql -X -A -t -d regression -c "SHOW server_version_num"` # before dumping, get rid of objects not existing in later versions diff --git a/src/test/regress/GNUmakefile b/src/test/regress/GNUmakefile index 1a3164065f..b8681dbd17 100644 --- a/src/test/regress/GNUmakefile +++ b/src/test/regress/GNUmakefile @@ -137,7 +137,9 @@ check-tests: all tablespace-setup | temp-install installcheck: all tablespace-setup $(pg_regress_installcheck) $(REGRESS_OPTS) --schedule=$(srcdir)/serial_schedule $(EXTRA_TESTS) -installcheck-parallel: all tablespace-setup +installcheck-parallel: tablespace-setup installcheck-parallel-notspsetup + +installcheck-parallel-notspsetup: all $(pg_regress_installcheck) $(REGRESS_OPTS) --schedule=$(srcdir)/parallel_schedule $(MAXCONNOPT) $(EXTRA_TESTS) installcheck-tests: all tablespace-setup diff --git a/src/tools/msvc/vcregress.pl b/src/tools/msvc/vcregress.pl index 74d37a31de..4516db1f38 100644 --- a/src/tools/msvc/vcregress.pl +++ b/src/tools/msvc/vcregress.pl @@ -115,7 +115,6 @@ sub installcheck_internal "--no-locale"); push(@args, $maxconn) if $maxconn; push(@args, @EXTRA_REGRESS_OPTS); - CleanupTablespaceDirectory(); system(@args); my $status = $? >> 8; exit $status if $status; @@ -125,6 +124,7 @@ sub installcheck_internal sub installcheck { my $schedule = shift || 'serial'; + CleanupTablespaceDirectory(); installcheck_internal($schedule); return; } -- 2.18.2 ----Next_Part(Mon_May_11_17_13_54_2020_626)---- ^ permalink raw reply [nested|flat] 20+ messages in thread
* [PATCH 2/2] Don't setup tablespace directory while testing pg_upgrade @ 2020-05-01 00:54 Kyotaro Horiguchi <[email protected]> 0 siblings, 0 replies; 20+ messages in thread From: Kyotaro Horiguchi @ 2020-05-01 00:54 UTC (permalink / raw) While make check of pg_upgrade, output directory is placed at a separate place from ordinary tmp_install. However Makefile reinitializes tablespace directory under the ordinary tmp_install, which may be being used by concurrent backend make check. The dedicate output directory doesn't need initialization so we just avoid tablespace initialization for the case. --- GNUmakefile.in | 4 ++-- src/bin/pg_upgrade/test.sh | 2 +- src/test/regress/GNUmakefile | 4 +++- src/tools/msvc/vcregress.pl | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/GNUmakefile.in b/GNUmakefile.in index ee636e3b50..943878e99b 100644 --- a/GNUmakefile.in +++ b/GNUmakefile.in @@ -63,8 +63,8 @@ distclean maintainer-clean: @rm -rf autom4te.cache/ rm -f config.cache config.log config.status GNUmakefile -check check-tests installcheck installcheck-parallel installcheck-tests: CHECKPREP_TOP=src/test/regress -check check-tests installcheck installcheck-parallel installcheck-tests: submake-generated-headers +check check-tests installcheck installcheck-parallel installcheck-parallel-notspsetup installcheck-tests: CHECKPREP_TOP=src/test/regress +check check-tests installcheck installcheck-parallel installcheck-parallel-notspsetup installcheck-tests: submake-generated-headers $(MAKE) -C src/test/regress $@ $(call recurse,check-world,src/test src/pl src/interfaces/ecpg contrib src/bin,check) diff --git a/src/bin/pg_upgrade/test.sh b/src/bin/pg_upgrade/test.sh index 10a28d8133..7be62bd49a 100644 --- a/src/bin/pg_upgrade/test.sh +++ b/src/bin/pg_upgrade/test.sh @@ -166,7 +166,7 @@ createdb "regression$dbname1" || createdb_status=$? createdb "regression$dbname2" || createdb_status=$? createdb "regression$dbname3" || createdb_status=$? -if "$MAKE" -C "$oldsrc" installcheck-parallel; then +if "$MAKE" -C "$oldsrc" installcheck-parallel-notspsetup; then oldpgversion=`psql -X -A -t -d regression -c "SHOW server_version_num"` # before dumping, get rid of objects not existing in later versions diff --git a/src/test/regress/GNUmakefile b/src/test/regress/GNUmakefile index 1a3164065f..b8681dbd17 100644 --- a/src/test/regress/GNUmakefile +++ b/src/test/regress/GNUmakefile @@ -137,7 +137,9 @@ check-tests: all tablespace-setup | temp-install installcheck: all tablespace-setup $(pg_regress_installcheck) $(REGRESS_OPTS) --schedule=$(srcdir)/serial_schedule $(EXTRA_TESTS) -installcheck-parallel: all tablespace-setup +installcheck-parallel: tablespace-setup installcheck-parallel-notspsetup + +installcheck-parallel-notspsetup: all $(pg_regress_installcheck) $(REGRESS_OPTS) --schedule=$(srcdir)/parallel_schedule $(MAXCONNOPT) $(EXTRA_TESTS) installcheck-tests: all tablespace-setup diff --git a/src/tools/msvc/vcregress.pl b/src/tools/msvc/vcregress.pl index 74d37a31de..4516db1f38 100644 --- a/src/tools/msvc/vcregress.pl +++ b/src/tools/msvc/vcregress.pl @@ -115,7 +115,6 @@ sub installcheck_internal "--no-locale"); push(@args, $maxconn) if $maxconn; push(@args, @EXTRA_REGRESS_OPTS); - CleanupTablespaceDirectory(); system(@args); my $status = $? >> 8; exit $status if $status; @@ -125,6 +124,7 @@ sub installcheck_internal sub installcheck { my $schedule = shift || 'serial'; + CleanupTablespaceDirectory(); installcheck_internal($schedule); return; } -- 2.18.2 ----Next_Part(Mon_May_11_17_13_54_2020_626)---- ^ permalink raw reply [nested|flat] 20+ messages in thread
* [PATCH 2/2] Don't setup tablespace directory while testing pg_upgrade @ 2020-05-01 00:54 Kyotaro Horiguchi <[email protected]> 0 siblings, 0 replies; 20+ messages in thread From: Kyotaro Horiguchi @ 2020-05-01 00:54 UTC (permalink / raw) While make check of pg_upgrade, output directory is placed at a separate place from ordinary tmp_install. However Makefile reinitializes tablespace directory under the ordinary tmp_install, which may be being used by concurrent backend make check. The dedicate output directory doesn't need initialization so we just avoid tablespace initialization for the case. --- GNUmakefile.in | 4 ++-- src/bin/pg_upgrade/test.sh | 2 +- src/test/regress/GNUmakefile | 4 +++- src/tools/msvc/vcregress.pl | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/GNUmakefile.in b/GNUmakefile.in index ee636e3b50..943878e99b 100644 --- a/GNUmakefile.in +++ b/GNUmakefile.in @@ -63,8 +63,8 @@ distclean maintainer-clean: @rm -rf autom4te.cache/ rm -f config.cache config.log config.status GNUmakefile -check check-tests installcheck installcheck-parallel installcheck-tests: CHECKPREP_TOP=src/test/regress -check check-tests installcheck installcheck-parallel installcheck-tests: submake-generated-headers +check check-tests installcheck installcheck-parallel installcheck-parallel-notspsetup installcheck-tests: CHECKPREP_TOP=src/test/regress +check check-tests installcheck installcheck-parallel installcheck-parallel-notspsetup installcheck-tests: submake-generated-headers $(MAKE) -C src/test/regress $@ $(call recurse,check-world,src/test src/pl src/interfaces/ecpg contrib src/bin,check) diff --git a/src/bin/pg_upgrade/test.sh b/src/bin/pg_upgrade/test.sh index 10a28d8133..7be62bd49a 100644 --- a/src/bin/pg_upgrade/test.sh +++ b/src/bin/pg_upgrade/test.sh @@ -166,7 +166,7 @@ createdb "regression$dbname1" || createdb_status=$? createdb "regression$dbname2" || createdb_status=$? createdb "regression$dbname3" || createdb_status=$? -if "$MAKE" -C "$oldsrc" installcheck-parallel; then +if "$MAKE" -C "$oldsrc" installcheck-parallel-notspsetup; then oldpgversion=`psql -X -A -t -d regression -c "SHOW server_version_num"` # before dumping, get rid of objects not existing in later versions diff --git a/src/test/regress/GNUmakefile b/src/test/regress/GNUmakefile index 1a3164065f..b8681dbd17 100644 --- a/src/test/regress/GNUmakefile +++ b/src/test/regress/GNUmakefile @@ -137,7 +137,9 @@ check-tests: all tablespace-setup | temp-install installcheck: all tablespace-setup $(pg_regress_installcheck) $(REGRESS_OPTS) --schedule=$(srcdir)/serial_schedule $(EXTRA_TESTS) -installcheck-parallel: all tablespace-setup +installcheck-parallel: tablespace-setup installcheck-parallel-notspsetup + +installcheck-parallel-notspsetup: all $(pg_regress_installcheck) $(REGRESS_OPTS) --schedule=$(srcdir)/parallel_schedule $(MAXCONNOPT) $(EXTRA_TESTS) installcheck-tests: all tablespace-setup diff --git a/src/tools/msvc/vcregress.pl b/src/tools/msvc/vcregress.pl index 74d37a31de..4516db1f38 100644 --- a/src/tools/msvc/vcregress.pl +++ b/src/tools/msvc/vcregress.pl @@ -115,7 +115,6 @@ sub installcheck_internal "--no-locale"); push(@args, $maxconn) if $maxconn; push(@args, @EXTRA_REGRESS_OPTS); - CleanupTablespaceDirectory(); system(@args); my $status = $? >> 8; exit $status if $status; @@ -125,6 +124,7 @@ sub installcheck_internal sub installcheck { my $schedule = shift || 'serial'; + CleanupTablespaceDirectory(); installcheck_internal($schedule); return; } -- 2.18.2 ----Next_Part(Mon_May_11_17_13_54_2020_626)---- ^ permalink raw reply [nested|flat] 20+ messages in thread
* [PATCH 2/2] Don't setup tablespace directory while testing pg_upgrade @ 2020-05-01 00:54 Kyotaro Horiguchi <[email protected]> 0 siblings, 0 replies; 20+ messages in thread From: Kyotaro Horiguchi @ 2020-05-01 00:54 UTC (permalink / raw) While make check of pg_upgrade, output directory is placed at a separate place from ordinary tmp_install. However Makefile reinitializes tablespace directory under the ordinary tmp_install, which may be being used by concurrent backend make check. The dedicate output directory doesn't need initialization so we just avoid tablespace initialization for the case. --- GNUmakefile.in | 4 ++-- src/bin/pg_upgrade/test.sh | 2 +- src/test/regress/GNUmakefile | 4 +++- src/tools/msvc/vcregress.pl | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/GNUmakefile.in b/GNUmakefile.in index ee636e3b50..943878e99b 100644 --- a/GNUmakefile.in +++ b/GNUmakefile.in @@ -63,8 +63,8 @@ distclean maintainer-clean: @rm -rf autom4te.cache/ rm -f config.cache config.log config.status GNUmakefile -check check-tests installcheck installcheck-parallel installcheck-tests: CHECKPREP_TOP=src/test/regress -check check-tests installcheck installcheck-parallel installcheck-tests: submake-generated-headers +check check-tests installcheck installcheck-parallel installcheck-parallel-notspsetup installcheck-tests: CHECKPREP_TOP=src/test/regress +check check-tests installcheck installcheck-parallel installcheck-parallel-notspsetup installcheck-tests: submake-generated-headers $(MAKE) -C src/test/regress $@ $(call recurse,check-world,src/test src/pl src/interfaces/ecpg contrib src/bin,check) diff --git a/src/bin/pg_upgrade/test.sh b/src/bin/pg_upgrade/test.sh index 10a28d8133..7be62bd49a 100644 --- a/src/bin/pg_upgrade/test.sh +++ b/src/bin/pg_upgrade/test.sh @@ -166,7 +166,7 @@ createdb "regression$dbname1" || createdb_status=$? createdb "regression$dbname2" || createdb_status=$? createdb "regression$dbname3" || createdb_status=$? -if "$MAKE" -C "$oldsrc" installcheck-parallel; then +if "$MAKE" -C "$oldsrc" installcheck-parallel-notspsetup; then oldpgversion=`psql -X -A -t -d regression -c "SHOW server_version_num"` # before dumping, get rid of objects not existing in later versions diff --git a/src/test/regress/GNUmakefile b/src/test/regress/GNUmakefile index 1a3164065f..b8681dbd17 100644 --- a/src/test/regress/GNUmakefile +++ b/src/test/regress/GNUmakefile @@ -137,7 +137,9 @@ check-tests: all tablespace-setup | temp-install installcheck: all tablespace-setup $(pg_regress_installcheck) $(REGRESS_OPTS) --schedule=$(srcdir)/serial_schedule $(EXTRA_TESTS) -installcheck-parallel: all tablespace-setup +installcheck-parallel: tablespace-setup installcheck-parallel-notspsetup + +installcheck-parallel-notspsetup: all $(pg_regress_installcheck) $(REGRESS_OPTS) --schedule=$(srcdir)/parallel_schedule $(MAXCONNOPT) $(EXTRA_TESTS) installcheck-tests: all tablespace-setup diff --git a/src/tools/msvc/vcregress.pl b/src/tools/msvc/vcregress.pl index 74d37a31de..4516db1f38 100644 --- a/src/tools/msvc/vcregress.pl +++ b/src/tools/msvc/vcregress.pl @@ -115,7 +115,6 @@ sub installcheck_internal "--no-locale"); push(@args, $maxconn) if $maxconn; push(@args, @EXTRA_REGRESS_OPTS); - CleanupTablespaceDirectory(); system(@args); my $status = $? >> 8; exit $status if $status; @@ -125,6 +124,7 @@ sub installcheck_internal sub installcheck { my $schedule = shift || 'serial'; + CleanupTablespaceDirectory(); installcheck_internal($schedule); return; } -- 2.18.2 ----Next_Part(Mon_May_11_17_13_54_2020_626)---- ^ permalink raw reply [nested|flat] 20+ messages in thread
* [PATCH 2/2] Don't setup tablespace directory while testing pg_upgrade @ 2020-05-01 00:54 Kyotaro Horiguchi <[email protected]> 0 siblings, 0 replies; 20+ messages in thread From: Kyotaro Horiguchi @ 2020-05-01 00:54 UTC (permalink / raw) While make check of pg_upgrade, output directory is placed at a separate place from ordinary tmp_install. However Makefile reinitializes tablespace directory under the ordinary tmp_install, which may be being used by concurrent backend make check. The dedicate output directory doesn't need initialization so we just avoid tablespace initialization for the case. --- GNUmakefile.in | 4 ++-- src/bin/pg_upgrade/test.sh | 2 +- src/test/regress/GNUmakefile | 4 +++- src/tools/msvc/vcregress.pl | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/GNUmakefile.in b/GNUmakefile.in index ee636e3b50..943878e99b 100644 --- a/GNUmakefile.in +++ b/GNUmakefile.in @@ -63,8 +63,8 @@ distclean maintainer-clean: @rm -rf autom4te.cache/ rm -f config.cache config.log config.status GNUmakefile -check check-tests installcheck installcheck-parallel installcheck-tests: CHECKPREP_TOP=src/test/regress -check check-tests installcheck installcheck-parallel installcheck-tests: submake-generated-headers +check check-tests installcheck installcheck-parallel installcheck-parallel-notspsetup installcheck-tests: CHECKPREP_TOP=src/test/regress +check check-tests installcheck installcheck-parallel installcheck-parallel-notspsetup installcheck-tests: submake-generated-headers $(MAKE) -C src/test/regress $@ $(call recurse,check-world,src/test src/pl src/interfaces/ecpg contrib src/bin,check) diff --git a/src/bin/pg_upgrade/test.sh b/src/bin/pg_upgrade/test.sh index 10a28d8133..7be62bd49a 100644 --- a/src/bin/pg_upgrade/test.sh +++ b/src/bin/pg_upgrade/test.sh @@ -166,7 +166,7 @@ createdb "regression$dbname1" || createdb_status=$? createdb "regression$dbname2" || createdb_status=$? createdb "regression$dbname3" || createdb_status=$? -if "$MAKE" -C "$oldsrc" installcheck-parallel; then +if "$MAKE" -C "$oldsrc" installcheck-parallel-notspsetup; then oldpgversion=`psql -X -A -t -d regression -c "SHOW server_version_num"` # before dumping, get rid of objects not existing in later versions diff --git a/src/test/regress/GNUmakefile b/src/test/regress/GNUmakefile index 1a3164065f..b8681dbd17 100644 --- a/src/test/regress/GNUmakefile +++ b/src/test/regress/GNUmakefile @@ -137,7 +137,9 @@ check-tests: all tablespace-setup | temp-install installcheck: all tablespace-setup $(pg_regress_installcheck) $(REGRESS_OPTS) --schedule=$(srcdir)/serial_schedule $(EXTRA_TESTS) -installcheck-parallel: all tablespace-setup +installcheck-parallel: tablespace-setup installcheck-parallel-notspsetup + +installcheck-parallel-notspsetup: all $(pg_regress_installcheck) $(REGRESS_OPTS) --schedule=$(srcdir)/parallel_schedule $(MAXCONNOPT) $(EXTRA_TESTS) installcheck-tests: all tablespace-setup diff --git a/src/tools/msvc/vcregress.pl b/src/tools/msvc/vcregress.pl index 74d37a31de..4516db1f38 100644 --- a/src/tools/msvc/vcregress.pl +++ b/src/tools/msvc/vcregress.pl @@ -115,7 +115,6 @@ sub installcheck_internal "--no-locale"); push(@args, $maxconn) if $maxconn; push(@args, @EXTRA_REGRESS_OPTS); - CleanupTablespaceDirectory(); system(@args); my $status = $? >> 8; exit $status if $status; @@ -125,6 +124,7 @@ sub installcheck_internal sub installcheck { my $schedule = shift || 'serial'; + CleanupTablespaceDirectory(); installcheck_internal($schedule); return; } -- 2.18.2 ----Next_Part(Mon_May_11_17_13_54_2020_626)---- ^ permalink raw reply [nested|flat] 20+ messages in thread
* [PATCH 2/2] Don't setup tablespace directory while testing pg_upgrade @ 2020-05-01 00:54 Kyotaro Horiguchi <[email protected]> 0 siblings, 0 replies; 20+ messages in thread From: Kyotaro Horiguchi @ 2020-05-01 00:54 UTC (permalink / raw) While make check of pg_upgrade, output directory is placed at a separate place from ordinary tmp_install. However Makefile reinitializes tablespace directory under the ordinary tmp_install, which may be being used by concurrent backend make check. The dedicate output directory doesn't need initialization so we just avoid tablespace initialization for the case. --- GNUmakefile.in | 4 ++-- src/bin/pg_upgrade/test.sh | 2 +- src/test/regress/GNUmakefile | 4 +++- src/tools/msvc/vcregress.pl | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/GNUmakefile.in b/GNUmakefile.in index ee636e3b50..943878e99b 100644 --- a/GNUmakefile.in +++ b/GNUmakefile.in @@ -63,8 +63,8 @@ distclean maintainer-clean: @rm -rf autom4te.cache/ rm -f config.cache config.log config.status GNUmakefile -check check-tests installcheck installcheck-parallel installcheck-tests: CHECKPREP_TOP=src/test/regress -check check-tests installcheck installcheck-parallel installcheck-tests: submake-generated-headers +check check-tests installcheck installcheck-parallel installcheck-parallel-notspsetup installcheck-tests: CHECKPREP_TOP=src/test/regress +check check-tests installcheck installcheck-parallel installcheck-parallel-notspsetup installcheck-tests: submake-generated-headers $(MAKE) -C src/test/regress $@ $(call recurse,check-world,src/test src/pl src/interfaces/ecpg contrib src/bin,check) diff --git a/src/bin/pg_upgrade/test.sh b/src/bin/pg_upgrade/test.sh index 10a28d8133..7be62bd49a 100644 --- a/src/bin/pg_upgrade/test.sh +++ b/src/bin/pg_upgrade/test.sh @@ -166,7 +166,7 @@ createdb "regression$dbname1" || createdb_status=$? createdb "regression$dbname2" || createdb_status=$? createdb "regression$dbname3" || createdb_status=$? -if "$MAKE" -C "$oldsrc" installcheck-parallel; then +if "$MAKE" -C "$oldsrc" installcheck-parallel-notspsetup; then oldpgversion=`psql -X -A -t -d regression -c "SHOW server_version_num"` # before dumping, get rid of objects not existing in later versions diff --git a/src/test/regress/GNUmakefile b/src/test/regress/GNUmakefile index 1a3164065f..b8681dbd17 100644 --- a/src/test/regress/GNUmakefile +++ b/src/test/regress/GNUmakefile @@ -137,7 +137,9 @@ check-tests: all tablespace-setup | temp-install installcheck: all tablespace-setup $(pg_regress_installcheck) $(REGRESS_OPTS) --schedule=$(srcdir)/serial_schedule $(EXTRA_TESTS) -installcheck-parallel: all tablespace-setup +installcheck-parallel: tablespace-setup installcheck-parallel-notspsetup + +installcheck-parallel-notspsetup: all $(pg_regress_installcheck) $(REGRESS_OPTS) --schedule=$(srcdir)/parallel_schedule $(MAXCONNOPT) $(EXTRA_TESTS) installcheck-tests: all tablespace-setup diff --git a/src/tools/msvc/vcregress.pl b/src/tools/msvc/vcregress.pl index 74d37a31de..4516db1f38 100644 --- a/src/tools/msvc/vcregress.pl +++ b/src/tools/msvc/vcregress.pl @@ -115,7 +115,6 @@ sub installcheck_internal "--no-locale"); push(@args, $maxconn) if $maxconn; push(@args, @EXTRA_REGRESS_OPTS); - CleanupTablespaceDirectory(); system(@args); my $status = $? >> 8; exit $status if $status; @@ -125,6 +124,7 @@ sub installcheck_internal sub installcheck { my $schedule = shift || 'serial'; + CleanupTablespaceDirectory(); installcheck_internal($schedule); return; } -- 2.18.2 ----Next_Part(Mon_May_11_17_13_54_2020_626)---- ^ permalink raw reply [nested|flat] 20+ messages in thread
* Function for listing pg_wal/summaries directory @ 2024-10-04 02:32 btogiwarayuushi <[email protected]> 0 siblings, 0 replies; 20+ messages in thread From: btogiwarayuushi @ 2024-10-04 02:32 UTC (permalink / raw) To: pgsql-hackers Hi, While WAL summaries feature and some support functions have been added in version 17, merely listing the contents of the pg_wal/summaries directory is missing. As discussed in the pg_ls_archive_status() discussion, it would be convenient to add pg_ls_summariesdir() that lists the contents of the pg_wal/summaries directory with the pg_monitor role. This patch is based on a very recent master and does not include the catversion bump. Best, Yushi Attachments: [text/x-diff] ls_summariesdir.diff (4.9K, ../../[email protected]/2-ls_summariesdir.diff) download | inline diff: diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index d6acdd3059..1b7f5c3a12 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -30530,6 +30530,30 @@ SELECT pg_size_pretty(sum(pg_relation_size(relid))) AS total_size </para></entry> </row> + <row> + <entry role="func_table_entry"><para role="func_signature"> + <indexterm> + <primary>pg_ls_summariesdir</primary> + </indexterm> + <function>pg_ls_summariesdir</function> () + <returnvalue>setof record</returnvalue> + ( <parameter>name</parameter> <type>text</type>, + <parameter>size</parameter> <type>bigint</type>, + <parameter>modification</parameter> <type>timestamp with time zone</type> ) + </para> + <para> + Returns the name, size, and last modification time (mtime) of each + ordinary file in the server's WAL summary directory + (<filename>pg_wal/summaries</filename>). Filenames beginning + with a dot, directories, and other special files are excluded. + </para> + <para> + This function is restricted to superusers and members of + the <literal>pg_monitor</literal> role by default, but other users can + be granted EXECUTE to run the function. + </para></entry> + </row> + <row> <entry role="func_table_entry"><para role="func_signature"> <indexterm> diff --git a/src/backend/catalog/system_functions.sql b/src/backend/catalog/system_functions.sql index b0d0de051e..fd6b606ae9 100644 --- a/src/backend/catalog/system_functions.sql +++ b/src/backend/catalog/system_functions.sql @@ -700,6 +700,8 @@ REVOKE EXECUTE ON FUNCTION pg_ls_waldir() FROM public; REVOKE EXECUTE ON FUNCTION pg_ls_archive_statusdir() FROM public; +REVOKE EXECUTE ON FUNCTION pg_ls_summariesdir() FROM public; + REVOKE EXECUTE ON FUNCTION pg_ls_tmpdir() FROM public; REVOKE EXECUTE ON FUNCTION pg_ls_tmpdir(oid) FROM public; @@ -770,6 +772,8 @@ GRANT EXECUTE ON FUNCTION pg_ls_waldir() TO pg_monitor; GRANT EXECUTE ON FUNCTION pg_ls_archive_statusdir() TO pg_monitor; +GRANT EXECUTE ON FUNCTION pg_ls_summariesdir() TO pg_monitor; + GRANT EXECUTE ON FUNCTION pg_ls_tmpdir() TO pg_monitor; GRANT EXECUTE ON FUNCTION pg_ls_tmpdir(oid) TO pg_monitor; diff --git a/src/backend/utils/adt/genfile.c b/src/backend/utils/adt/genfile.c index 24b95c32b7..d84ed8970e 100644 --- a/src/backend/utils/adt/genfile.c +++ b/src/backend/utils/adt/genfile.c @@ -689,6 +689,15 @@ pg_ls_archive_statusdir(PG_FUNCTION_ARGS) return pg_ls_dir_files(fcinfo, XLOGDIR "/archive_status", true); } +/* + * Function to return the list of files in the WAL summary directory. + */ +Datum +pg_ls_summariesdir(PG_FUNCTION_ARGS) +{ + return pg_ls_dir_files(fcinfo, XLOGDIR "/summaries", true); +} + /* * Function to return the list of files in the PG_LOGICAL_SNAPSHOTS_DIR * directory. diff --git a/src/include/catalog/pg_proc.dat b/src/include/catalog/pg_proc.dat index 77f54a79e6..a3035559b6 100644 --- a/src/include/catalog/pg_proc.dat +++ b/src/include/catalog/pg_proc.dat @@ -12173,6 +12173,12 @@ provolatile => 'v', prorettype => 'record', proargtypes => '', proallargtypes => '{text,int8,timestamptz}', proargmodes => '{o,o,o}', proargnames => '{name,size,modification}', prosrc => 'pg_ls_waldir' }, +{ oid => '5101', descr => 'list of files in the summaries directory', + proname => 'pg_ls_summariesdir', procost => '10', prorows => '20', + proretset => 't', provolatile => 'v', prorettype => 'record', + proargtypes => '', proallargtypes => '{text,int8,timestamptz}', + proargmodes => '{o,o,o}', proargnames => '{name,size,modification}', + prosrc => 'pg_ls_summariesdir' }, { oid => '5031', descr => 'list of files in the archive_status directory', proname => 'pg_ls_archive_statusdir', procost => '10', prorows => '20', proretset => 't', provolatile => 'v', prorettype => 'record', diff --git a/src/test/regress/expected/misc_functions.out b/src/test/regress/expected/misc_functions.out index 5f7bf6b8af..36b1201f9f 100644 --- a/src/test/regress/expected/misc_functions.out +++ b/src/test/regress/expected/misc_functions.out @@ -412,6 +412,12 @@ select count(*) >= 0 as ok from pg_ls_archive_statusdir(); t (1 row) +select count(*) >= 0 as ok from pg_ls_summariesdir(); + ok +---- + t +(1 row) + -- pg_read_file() select length(pg_read_file('postmaster.pid')) > 20; ?column? diff --git a/src/test/regress/sql/misc_functions.sql b/src/test/regress/sql/misc_functions.sql index 1e90d60af3..b7495d70eb 100644 --- a/src/test/regress/sql/misc_functions.sql +++ b/src/test/regress/sql/misc_functions.sql @@ -163,6 +163,7 @@ select (w).size = :segsize as ok from (select pg_ls_waldir() w) ss where length((w).name) = 24 limit 1; select count(*) >= 0 as ok from pg_ls_archive_statusdir(); +select count(*) >= 0 as ok from pg_ls_summariesdir(); -- pg_read_file() select length(pg_read_file('postmaster.pid')) > 20; ^ permalink raw reply [nested|flat] 20+ messages in thread
end of thread, other threads:[~2024-10-04 02:32 UTC | newest] Thread overview: 20+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2020-05-01 00:54 [PATCH 2/2] Don't setup tablespace directory while testing pg_upgrade Kyotaro Horiguchi <[email protected]> 2020-05-01 00:54 [PATCH 2/2] Don't setup tablespace directory while testing pg_upgrade Kyotaro Horiguchi <[email protected]> 2020-05-01 00:54 [PATCH 2/2] Don't setup tablespace directory while testing pg_upgrade Kyotaro Horiguchi <[email protected]> 2020-05-01 00:54 [PATCH 2/2] Don't setup tablespace directory while testing pg_upgrade Kyotaro Horiguchi <[email protected]> 2020-05-01 00:54 [PATCH 2/2] Don't setup tablespace directory while testing pg_upgrade Kyotaro Horiguchi <[email protected]> 2020-05-01 00:54 [PATCH 2/2] Don't setup tablespace directory while testing pg_upgrade Kyotaro Horiguchi <[email protected]> 2020-05-01 00:54 [PATCH 2/2] Don't setup tablespace directory while testing pg_upgrade Kyotaro Horiguchi <[email protected]> 2020-05-01 00:54 [PATCH 2/2] Don't setup tablespace directory while testing pg_upgrade Kyotaro Horiguchi <[email protected]> 2020-05-01 00:54 [PATCH 2/2] Don't setup tablespace directory while testing pg_upgrade Kyotaro Horiguchi <[email protected]> 2020-05-01 00:54 [PATCH 2/2] Don't setup tablespace directory while testing pg_upgrade Kyotaro Horiguchi <[email protected]> 2020-05-01 00:54 [PATCH 2/2] Don't setup tablespace directory while testing pg_upgrade Kyotaro Horiguchi <[email protected]> 2020-05-01 00:54 [PATCH 2/2] Don't setup tablespace directory while testing pg_upgrade Kyotaro Horiguchi <[email protected]> 2020-05-01 00:54 [PATCH 2/2] Don't setup tablespace directory while testing pg_upgrade Kyotaro Horiguchi <[email protected]> 2020-05-01 00:54 [PATCH 2/2] Don't setup tablespace directory while testing pg_upgrade Kyotaro Horiguchi <[email protected]> 2020-05-01 00:54 [PATCH 2/2] Don't setup tablespace directory while testing pg_upgrade Kyotaro Horiguchi <[email protected]> 2020-05-01 00:54 [PATCH 2/2] Don't setup tablespace directory while testing pg_upgrade Kyotaro Horiguchi <[email protected]> 2020-05-01 00:54 [PATCH 2/2] Don't setup tablespace directory while testing pg_upgrade Kyotaro Horiguchi <[email protected]> 2020-05-01 00:54 [PATCH 2/2] Don't setup tablespace directory while testing pg_upgrade Kyotaro Horiguchi <[email protected]> 2020-05-01 00:54 [PATCH 2/2] Don't setup tablespace directory while testing pg_upgrade Kyotaro Horiguchi <[email protected]> 2024-10-04 02:32 Function for listing pg_wal/summaries directory btogiwarayuushi <[email protected]>
This inbox is served by agora; see mirroring instructions for how to clone and mirror all data and code used for this inbox