git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: a67da49) | patch
Convert node test compile-time settings into run-time parameters
Thu, 1 Aug 2024 07:37:44 +0000 (09:37 +0200)
Thu, 1 Aug 2024 08:09:18 +0000 (10:09 +0200)
commit a292c98d62ddc0ad681f772ab91bf68ee399cb4b
Convert node test compile-time settings into run-time parameters

This converts

COPY_PARSE_PLAN_TREES
WRITE_READ_PARSE_PLAN_TREES
RAW_EXPRESSION_COVERAGE_TEST

into run-time parameters

debug_copy_parse_plan_trees
debug_write_read_parse_plan_trees
debug_raw_expression_coverage_test

They can be activated for tests using PG_TEST_INITDB_EXTRA_OPTS.

The compile-time symbols are kept for build farm compatibility, but
they now just determine the default value of the run-time settings.

Furthermore, support for these settings is not compiled in at all
unless assertions are enabled, or the new symbol
DEBUG_NODE_TESTS_ENABLED is defined at compile time, or any of the
legacy compile-time setting symbols are defined. So there is no
run-time overhead in production builds. (This is similar to the
handling of DISCARD_CACHES_ENABLED.)

Discussion: https://www.postgresql.org/message-id/flat/30747bd8-f51e-4e0c-a310-a6e2c37ec8aa%40eisentraut.org
12 files changed:
.cirrus.tasks.yml diff | blob | blame | history
doc/src/sgml/config.sgml diff | blob | blame | history
src/backend/nodes/README diff | blob | blame | history
src/backend/nodes/read.c diff | blob | blame | history
src/backend/nodes/readfuncs.c diff | blob | blame | history
src/backend/parser/analyze.c diff | blob | blame | history
src/backend/tcop/postgres.c diff | blob | blame | history
src/backend/utils/misc/guc_tables.c diff | blob | blame | history
src/include/nodes/nodes.h diff | blob | blame | history
src/include/nodes/readfuncs.h diff | blob | blame | history
src/include/pg_config_manual.h diff | blob | blame | history
src/include/utils/guc.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /