|
101 | 101 | #include "utils/plancache.h"
|
102 | 102 | #include "utils/portal.h"
|
103 | 103 | #include "utils/ps_status.h"
|
| 104 | +#include "utils/queryjumble.h" |
104 | 105 | #include "utils/rls.h"
|
105 | 106 | #include "utils/snapmgr.h"
|
106 | 107 | #include "utils/tzparser.h"
|
@@ -402,6 +403,23 @@ static const struct config_enum_entry backslash_quote_options[] = {
|
402 | 403 | {NULL, 0, false}
|
403 | 404 | };
|
404 | 405 |
|
| 406 | +/* |
| 407 | + * Although only "on", "off", and "auto" are documented, we accept |
| 408 | + * all the likely variants of "on" and "off". |
| 409 | + */ |
| 410 | +static const struct config_enum_entry compute_query_id_options[] = { |
| 411 | + {"auto", COMPUTE_QUERY_ID_AUTO, false}, |
| 412 | + {"on", COMPUTE_QUERY_ID_ON, false}, |
| 413 | + {"off", COMPUTE_QUERY_ID_OFF, false}, |
| 414 | + {"true", COMPUTE_QUERY_ID_ON, true}, |
| 415 | + {"false", COMPUTE_QUERY_ID_OFF, true}, |
| 416 | + {"yes", COMPUTE_QUERY_ID_ON, true}, |
| 417 | + {"no", COMPUTE_QUERY_ID_OFF, true}, |
| 418 | + {"1", COMPUTE_QUERY_ID_ON, true}, |
| 419 | + {"0", COMPUTE_QUERY_ID_OFF, true}, |
| 420 | + {NULL, 0, false} |
| 421 | +}; |
| 422 | + |
405 | 423 | /*
|
406 | 424 | * Although only "on", "off", and "partition" are documented, we
|
407 | 425 | * accept all the likely variants of "on" and "off".
|
@@ -534,7 +552,6 @@ extern const struct config_enum_entry dynamic_shared_memory_options[];
|
534 | 552 | /*
|
535 | 553 | * GUC option variables that are exported from this module
|
536 | 554 | */
|
537 |
| -bool compute_query_id = false; |
538 | 555 | bool log_duration = false;
|
539 | 556 | bool Debug_print_plan = false;
|
540 | 557 | bool Debug_print_parse = false;
|
@@ -1441,15 +1458,6 @@ static struct config_bool ConfigureNamesBool[] =
|
1441 | 1458 | true,
|
1442 | 1459 | NULL, NULL, NULL
|
1443 | 1460 | },
|
1444 |
| - { |
1445 |
| - {"compute_query_id", PGC_SUSET, STATS_MONITORING, |
1446 |
| - gettext_noop("Compute query identifiers."), |
1447 |
| - NULL |
1448 |
| - }, |
1449 |
| - &compute_query_id, |
1450 |
| - false, |
1451 |
| - NULL, NULL, NULL |
1452 |
| - }, |
1453 | 1461 | {
|
1454 | 1462 | {"log_parser_stats", PGC_SUSET, STATS_MONITORING,
|
1455 | 1463 | gettext_noop("Writes parser performance statistics to the server log."),
|
@@ -4619,6 +4627,16 @@ static struct config_enum ConfigureNamesEnum[] =
|
4619 | 4627 | NULL, NULL, NULL
|
4620 | 4628 | },
|
4621 | 4629 |
|
| 4630 | + { |
| 4631 | + {"compute_query_id", PGC_SUSET, STATS_MONITORING, |
| 4632 | + gettext_noop("Compute query identifiers."), |
| 4633 | + NULL |
| 4634 | + }, |
| 4635 | + &compute_query_id, |
| 4636 | + COMPUTE_QUERY_ID_AUTO, compute_query_id_options, |
| 4637 | + NULL, NULL, NULL |
| 4638 | + }, |
| 4639 | + |
4622 | 4640 | {
|
4623 | 4641 | {"constraint_exclusion", PGC_USERSET, QUERY_TUNING_OTHER,
|
4624 | 4642 | gettext_noop("Enables the planner to use constraints to optimize queries."),
|
|
0 commit comments