From 5352ca22e0012d48055453ca9992a9515d811291 Mon Sep 17 00:00:00 2001 From: David Rowley Date: Wed, 15 Feb 2023 21:21:59 +1300 Subject: Rename force_parallel_mode to debug_parallel_query force_parallel_mode is meant to be used to allow us to exercise the parallel query infrastructure to ensure that it's working as we expect. It seems some users think this GUC is for forcing the query planner into picking a parallel plan regardless of the costs. A quick look at the documentation would have made them realize that they were wrong, but the GUC is likely too conveniently named which, evidently, seems to often result in users expecting that it forces the planner into usefully parallelizing queries. Here we rename the GUC to something which casual users are less likely to mistakenly think is what they need to make their query run more quickly. For now, the old name can still be used. We'll revisit if the old name mapping can be removed once the buildfarm configs are all updated. Reviewed-by: John Naylor Discussion: https://postgr.es/m/CAApHDvrsOi92_uA7PEaHZMH-S4Xv+MGhQWA+GrP8b1kjpS1HjQ@mail.gmail.com --- doc/src/sgml/config.sgml | 8 ++++---- doc/src/sgml/regress.sgml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/config.sgml b/doc/src/sgml/config.sgml index 8c56b134a84..ecd9aa73ef7 100644 --- a/doc/src/sgml/config.sgml +++ b/doc/src/sgml/config.sgml @@ -11091,17 +11091,17 @@ dynamic_library_path = 'C:\tools\postgresql;H:\my_project\lib;$libdir' - - force_parallel_mode (enum) + + debug_parallel_query (enum) - force_parallel_mode configuration parameter + debug_parallel_query configuration parameter Allows the use of parallel queries for testing purposes even in cases where no performance benefit is expected. - The allowed values of force_parallel_mode are + The allowed values of debug_parallel_query are off (use parallel mode only when it is expected to improve performance), on (force parallel query for all queries for which it is thought to be safe), and regress (like diff --git a/doc/src/sgml/regress.sgml b/doc/src/sgml/regress.sgml index 117d097390c..a08c7a78af8 100644 --- a/doc/src/sgml/regress.sgml +++ b/doc/src/sgml/regress.sgml @@ -370,7 +370,7 @@ make check LANG=C ENCODING=EUC_JP set in the PGOPTIONS environment variable (for settings that allow this): -make check PGOPTIONS="-c force_parallel_mode=regress -c work_mem=50MB" +make check PGOPTIONS="-c debug_parallel_query=regress -c work_mem=50MB" When running against a temporary installation, custom settings can also be set by supplying a pre-written postgresql.conf: -- cgit v1.2.3