|
28 | 28 |
|
29 | 29 | #include "access/commit_ts.h"
|
30 | 30 | #include "access/gin.h"
|
| 31 | +#include "access/parallel.h" |
31 | 32 | #include "access/slru.h"
|
32 | 33 | #include "access/toast_compression.h"
|
33 | 34 | #include "access/twophase.h"
|
@@ -428,6 +429,13 @@ static const struct config_enum_entry debug_logical_replication_streaming_option
|
428 | 429 | {NULL, 0, false}
|
429 | 430 | };
|
430 | 431 |
|
| 432 | +static const struct config_enum_entry log_parallel_workers_options[] = { |
| 433 | + {"none", LOG_PARALLEL_WORKERS_NONE, false}, |
| 434 | + {"all", LOG_PARALLEL_WORKERS_ALL, false}, |
| 435 | + {"shortage", LOG_PARALLEL_WORKERS_SHORTAGE, false}, |
| 436 | + {NULL, 0, false} |
| 437 | +}; |
| 438 | + |
431 | 439 | StaticAssertDecl(lengthof(ssl_protocol_versions_info) == (PG_TLS1_3_VERSION + 2),
|
432 | 440 | "array length mismatch");
|
433 | 441 |
|
@@ -531,6 +539,7 @@ int log_min_duration_statement = -1;
|
531 | 539 | int log_parameter_max_length = -1;
|
532 | 540 | int log_parameter_max_length_on_error = 0;
|
533 | 541 | int log_temp_files = -1;
|
| 542 | +int log_parallel_workers = LOG_PARALLEL_WORKERS_NONE; |
534 | 543 | double log_statement_sample_rate = 1.0;
|
535 | 544 | double log_xact_sample_rate = 0;
|
536 | 545 | char *backtrace_functions;
|
@@ -5340,6 +5349,16 @@ struct config_enum ConfigureNamesEnum[] =
|
5340 | 5349 | NULL, NULL, NULL
|
5341 | 5350 | },
|
5342 | 5351 |
|
| 5352 | + { |
| 5353 | + {"log_parallel_workers", PGC_SUSET, LOGGING_WHAT, |
| 5354 | + gettext_noop("Log information about parallel worker usage"), |
| 5355 | + NULL |
| 5356 | + }, |
| 5357 | + &log_parallel_workers, |
| 5358 | + LOG_PARALLEL_WORKERS_NONE, log_parallel_workers_options, |
| 5359 | + NULL, NULL, NULL |
| 5360 | + }, |
| 5361 | + |
5343 | 5362 | {
|
5344 | 5363 | {"ssl_min_protocol_version", PGC_SIGHUP, CONN_AUTH_SSL,
|
5345 | 5364 | gettext_noop("Sets the minimum SSL/TLS protocol version to use."),
|
|
0 commit comments