forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit009f8d1
committed
Extend check_GUC_init() with checks on flag combinations when loading GUCs
This extends the work begun bya73952b, with the addition of a GUC checkfor flag combinations in check_GUC_init(), making sure that anythingdefined with GUC_NO_SHOW_ALL also includes GUC_NOT_IN_SAMPLE, as firststep. There has never been any GUCs of this kind in the core code, andthis combination makes little sense as a parameter marked as not fit forSHOW ALL should not be hidden in postgresql.conf.sample.Note that GUCs marked with GUC_NO_SHOW_ALL are not listed underpg_settings or SHOW ALL (still they can be queried individually), makingthem unfit for checks via SQL queries in the regression tests that do afull scan of the parameters available. The SQL tests are still a bitincorrect about that, and will be cleaned up in a separate commit. Wehave also discussed the possibility to extend the SQL functions for GUCsso as they could show more information about parameters defined withGUC_NO_SHOW_ALL, though it has been concluded that this is not worth theextra complication in the long run, an enforced policy at initializationtime being enough to do the same job.Per discussion with Nitin Jadhav and Tom Lane.Discussion:https://postgr.es/m/CAMm1aWaYe0muu3ABo7iSAgK+OWDS9yNe8GGRYnCyeEpScYKa+g@mail.gmail.com1 parentd07c294 commit009f8d1
1 file changed
+22
-4
lines changedLines changed: 22 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1383 | 1383 |
| |
1384 | 1384 |
| |
1385 | 1385 |
| |
1386 |
| - | |
1387 |
| - | |
1388 |
| - | |
| 1386 | + | |
1389 | 1387 |
| |
1390 |
| - | |
| 1388 | + | |
| 1389 | + | |
| 1390 | + | |
| 1391 | + | |
| 1392 | + | |
| 1393 | + | |
1391 | 1394 |
| |
1392 | 1395 |
| |
1393 | 1396 |
| |
| |||
1398 | 1401 |
| |
1399 | 1402 |
| |
1400 | 1403 |
| |
| 1404 | + | |
1401 | 1405 |
| |
1402 | 1406 |
| |
1403 | 1407 |
| |
| |||
1462 | 1466 |
| |
1463 | 1467 |
| |
1464 | 1468 |
| |
| 1469 | + | |
| 1470 | + | |
| 1471 | + | |
| 1472 | + | |
| 1473 | + | |
| 1474 | + | |
| 1475 | + | |
| 1476 | + | |
| 1477 | + | |
| 1478 | + | |
| 1479 | + | |
| 1480 | + | |
| 1481 | + | |
| 1482 | + | |
1465 | 1483 |
| |
1466 | 1484 |
| |
1467 | 1485 |
| |
|
0 commit comments
Comments
(0)