[PATCH] force_parallel_mode and GUC categories

From: Justin Pryzby <pryzby(at)telsasoft(dot)com>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: [PATCH] force_parallel_mode and GUC categories
Date: 2021-04-04 01:25:46
Message-ID: 20210404012546.GK6592@telsasoft.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-performance

Forking this thread
https://www.postgresql.org/message-id/20210403154336.GG29125%40momjian.us

On Sat, Apr 3, 2021 at 08:38:18PM +0530, aditya desai wrote:
> > > >> Yes, force_parallel_mode is on. Should we set it off?

Bruce Momjian <bruce(at)momjian(dot)us> writes:
> > > > Yes. I bet someone set it without reading our docs:
...
> > > > We might need to clarify this sentence to be clearer it is _only_ for
> > > > testing.

On Sat, Apr 03, 2021 at 11:39:19AM -0400, Tom Lane wrote:
> > > I wonder why it is listed under planner options at all, and not under
> > > developer options.

On Sat, Apr 3, 2021 at 10:41:14AM -0500, Justin Pryzby wrote:
> > Because it's there to help DBAs catch errors in functions incorrectly marked as
> > parallel safe.

On Sat, Apr 03, 2021 at 11:43:36AM -0400, Bruce Momjian wrote:
> Uh, isn't that developer/debugging?

I understood "developer" to mean someone who's debugging postgres itself, not
(say) a function written using pl/pgsql. Like backtrace_functions,
post_auth_delay, jit_profiling_support.

But I see that some "dev" options are more user-facing (for a sufficiently
advanced user):
ignore_checksum_failure, ignore_invalid_pages, zero_damaged_pages.

Also, I understood this to mean the "category" in pg_settings, but I guess
what's important here is the absense of the GUC in the sample/template config
file. pg_settings.category and the sample headings it appears are intended to
be synchronized, but a few of them are out of sync. See attached.

+1 to move this to "developer" options and remove it from the sample config:

# - Other Planner Options -
#force_parallel_mode = off

--
Justin

Attachment Content-Type Size
0001-track_activity_query_size-is-STATS_COLLECTOR-categor.patch text/x-diff 2.1 KB
0002-log_autovacuum_min_duration-is-LOGGING_WHAT.patch text/x-diff 5.3 KB
0003-track_commit_timestamp-is-REPLICATION_SENDING.patch text/x-diff 852 bytes
0004-Change-force_parallel_mode-to-a-DEVELOPER-GUC-and-re.patch text/x-diff 7.3 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Geoghegan 2021-04-04 01:59:57 Re: New IndexAM API controlling index vacuum strategies
Previous Message Tom Lane 2021-04-04 01:20:14 Re: ModifyTable overheads in generic plans

Browse pgsql-performance by date

  From Date Subject
Next Message aditya desai 2021-04-04 10:42:14 SHARED LOCKS , EXCLUSIVE LOCKS, ACCESS EXCLUSIVE LOCKS
Previous Message Pavel Stehule 2021-04-03 17:50:38 Re: SELECT Query taking 200 ms on PostgreSQL compared to 4 ms on Oracle after migration.