forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit3bdcf6a
committed
Don't allow to disable backend assertions via the debug_assertions GUC.
The existance of the assert_enabled variable (backing thedebug_assertions GUC) reduced the amount of knowledge some static codecheckers (like coverity and various compilers) could infer from theexistance of the assertion. That could have been solved by optionallyremoving the assertion_enabled variable from the Assert() et al macrosat compile time when some special macro is defined, but the resultingcomplication doesn't seem to be worth the gain from havingdebug_assertions. Recompiling is fast enough.The debug_assertions GUC is still available, but readonly, as it'suseful when diagnosing problems. The commandline/client startup option-A, which previously also allowed to enable/disable assertions, hasbeen removed as it doesn't serve a purpose anymore.While at it, reduce code duplication in bufmgr.c and localbuf.cassertions checking for spurious buffer pins. That code had to bereindented anyway to cope with the assert_enabled removal.1 parent45b0f35 commit3bdcf6a
File tree
14 files changed
+106
-177
lines changed- doc/src/sgml
- ref
- src
- backend
- access/gin
- commands
- postmaster
- storage
- buffer
- lmgr
- tcop
- utils
- cache
- misc
- include
14 files changed
+106
-177
lines changedLines changed: 20 additions & 26 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6722 | 6722 |
| |
6723 | 6723 |
| |
6724 | 6724 |
| |
| 6725 | + | |
| 6726 | + | |
| 6727 | + | |
| 6728 | + | |
| 6729 | + | |
| 6730 | + | |
| 6731 | + | |
| 6732 | + | |
| 6733 | + | |
| 6734 | + | |
| 6735 | + | |
| 6736 | + | |
| 6737 | + | |
| 6738 | + | |
| 6739 | + | |
| 6740 | + | |
| 6741 | + | |
| 6742 | + | |
| 6743 | + | |
| 6744 | + | |
6725 | 6745 |
| |
6726 | 6746 |
| |
6727 | 6747 |
| |
| |||
6973 | 6993 |
| |
6974 | 6994 |
| |
6975 | 6995 |
| |
6976 |
| - | |
6977 |
| - | |
6978 |
| - | |
6979 |
| - | |
6980 |
| - | |
6981 |
| - | |
6982 |
| - | |
6983 |
| - | |
6984 |
| - | |
6985 |
| - | |
6986 |
| - | |
6987 |
| - | |
6988 |
| - | |
6989 |
| - | |
6990 |
| - | |
6991 |
| - | |
6992 |
| - | |
6993 |
| - | |
6994 |
| - | |
6995 |
| - | |
6996 |
| - | |
6997 |
| - | |
6998 | 6996 |
| |
6999 | 6997 |
| |
7000 | 6998 |
| |
| |||
7354 | 7352 |
| |
7355 | 7353 |
| |
7356 | 7354 |
| |
7357 |
| - | |
7358 |
| - | |
7359 |
| - | |
7360 |
| - | |
7361 | 7355 |
| |
7362 | 7356 |
| |
7363 | 7357 |
| |
|
Lines changed: 0 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
101 | 101 |
| |
102 | 102 |
| |
103 | 103 |
| |
104 |
| - | |
105 |
| - | |
106 |
| - | |
107 |
| - | |
108 |
| - | |
109 |
| - | |
110 |
| - | |
111 |
| - | |
112 |
| - | |
113 |
| - | |
114 |
| - | |
115 |
| - | |
116 | 104 |
| |
117 | 105 |
| |
118 | 106 |
| |
|
Lines changed: 0 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
250 | 250 |
| |
251 | 251 |
| |
252 | 252 |
| |
253 |
| - | |
254 | 253 |
| |
255 | 254 |
| |
256 | 255 |
| |
|
Lines changed: 0 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
635 | 635 |
| |
636 | 636 |
| |
637 | 637 |
| |
638 |
| - | |
639 | 638 |
| |
640 | 639 |
| |
641 | 640 |
| |
|
Lines changed: 1 addition & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
603 | 603 |
| |
604 | 604 |
| |
605 | 605 |
| |
606 |
| - | |
| 606 | + | |
607 | 607 |
| |
608 | 608 |
| |
609 | 609 |
| |
610 |
| - | |
611 |
| - | |
612 |
| - | |
613 |
| - | |
614 | 610 |
| |
615 | 611 |
| |
616 | 612 |
| |
|
Lines changed: 26 additions & 36 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
109 | 109 |
| |
110 | 110 |
| |
111 | 111 |
| |
| 112 | + | |
112 | 113 |
| |
113 | 114 |
| |
114 | 115 |
| |
| |||
1699 | 1700 |
| |
1700 | 1701 |
| |
1701 | 1702 |
| |
1702 |
| - | |
1703 | 1703 |
| |
1704 | 1704 |
| |
1705 |
| - | |
1706 |
| - | |
1707 |
| - | |
1708 |
| - | |
1709 | 1705 |
| |
1710 | 1706 |
| |
1711 | 1707 |
| |
1712 | 1708 |
| |
1713 |
| - | |
1714 |
| - | |
1715 |
| - | |
1716 |
| - | |
1717 |
| - | |
1718 |
| - | |
1719 |
| - | |
1720 |
| - | |
1721 |
| - | |
1722 |
| - | |
1723 |
| - | |
1724 |
| - | |
1725 |
| - | |
1726 |
| - | |
1727 |
| - | |
1728 |
| - | |
1729 |
| - | |
| 1709 | + | |
1730 | 1710 |
| |
1731 | 1711 |
| |
1732 | 1712 |
| |
| |||
1756 | 1736 |
| |
1757 | 1737 |
| |
1758 | 1738 |
| |
| 1739 | + | |
| 1740 | + | |
| 1741 | + | |
| 1742 | + | |
| 1743 | + | |
| 1744 | + | |
| 1745 | + | |
| 1746 | + | |
| 1747 | + | |
| 1748 | + | |
| 1749 | + | |
| 1750 | + | |
| 1751 | + | |
| 1752 | + | |
| 1753 | + | |
| 1754 | + | |
1759 | 1755 |
| |
1760 |
| - | |
1761 |
| - | |
1762 |
| - | |
1763 |
| - | |
| 1756 | + | |
| 1757 | + | |
1764 | 1758 |
| |
1765 |
| - | |
| 1759 | + | |
| 1760 | + | |
| 1761 | + | |
1766 | 1762 |
| |
1767 |
| - | |
1768 |
| - | |
1769 |
| - | |
1770 |
| - | |
1771 |
| - | |
| 1763 | + | |
| 1764 | + | |
1772 | 1765 |
| |
1773 |
| - | |
1774 | 1766 |
| |
| 1767 | + | |
1775 | 1768 |
| |
1776 |
| - | |
1777 |
| - | |
1778 |
| - | |
1779 | 1769 |
| |
1780 | 1770 |
| |
1781 | 1771 |
| |
|
Lines changed: 23 additions & 28 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
491 | 491 |
| |
492 | 492 |
| |
493 | 493 |
| |
494 |
| - | |
| 494 | + | |
495 | 495 |
| |
496 |
| - | |
| 496 | + | |
497 | 497 |
| |
498 |
| - | |
499 |
| - | |
| 498 | + | |
| 499 | + | |
500 | 500 |
| |
501 | 501 |
| |
502 |
| - | |
| 502 | + | |
503 | 503 |
| |
504 | 504 |
| |
505 | 505 |
| |
| |||
519 | 519 |
| |
520 | 520 |
| |
521 | 521 |
| |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
522 | 533 |
| |
523 | 534 |
| |
524 | 535 |
| |
525 |
| - | |
526 |
| - | |
527 |
| - | |
528 |
| - | |
| 536 | + | |
529 | 537 |
| |
530 | 538 |
| |
531 | 539 |
| |
532 | 540 |
| |
533 |
| - | |
534 |
| - | |
535 |
| - | |
536 |
| - | |
537 |
| - | |
538 |
| - | |
539 |
| - | |
540 |
| - | |
541 |
| - | |
542 |
| - | |
543 |
| - | |
544 |
| - | |
545 |
| - | |
546 |
| - | |
547 |
| - | |
548 |
| - | |
549 |
| - | |
550 |
| - | |
551 |
| - | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
552 | 547 |
|
Lines changed: 0 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
376 | 376 |
| |
377 | 377 |
| |
378 | 378 |
| |
379 |
| - | |
380 | 379 |
| |
381 | 380 |
| |
382 | 381 |
| |
| |||
539 | 538 |
| |
540 | 539 |
| |
541 | 540 |
| |
542 |
| - | |
543 | 541 |
| |
544 | 542 |
| |
545 | 543 |
| |
| |||
782 | 780 |
| |
783 | 781 |
| |
784 | 782 |
| |
785 |
| - | |
786 | 783 |
| |
787 | 784 |
| |
788 | 785 |
| |
|
Lines changed: 1 addition & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3305 | 3305 |
| |
3306 | 3306 |
| |
3307 | 3307 |
| |
3308 |
| - | |
| 3308 | + | |
3309 | 3309 |
| |
3310 | 3310 |
| |
3311 | 3311 |
| |
3312 |
| - | |
3313 |
| - | |
3314 |
| - | |
3315 |
| - | |
3316 | 3312 |
| |
3317 | 3313 |
| |
3318 | 3314 |
| |
|
Lines changed: 24 additions & 27 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
553 | 553 |
| |
554 | 554 |
| |
555 | 555 |
| |
556 |
| - | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
557 | 559 |
| |
558 |
| - | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
559 | 563 |
| |
560 |
| - | |
| 564 | + | |
| 565 | + | |
561 | 566 |
| |
562 |
| - | |
563 |
| - | |
564 |
| - | |
| 567 | + | |
565 | 568 |
| |
566 |
| - | |
567 |
| - | |
568 |
| - | |
569 |
| - | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
570 | 574 |
| |
571 |
| - | |
572 |
| - | |
573 |
| - | |
574 |
| - | |
575 |
| - | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
576 | 579 |
| |
577 |
| - | |
578 |
| - | |
| 580 | + | |
579 | 581 |
| |
580 |
| - | |
581 |
| - | |
582 |
| - | |
583 |
| - | |
584 |
| - | |
| 582 | + | |
585 | 583 |
| |
586 |
| - | |
587 |
| - | |
588 |
| - | |
589 |
| - | |
590 |
| - | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
591 | 588 |
| |
592 | 589 |
| |
593 | 590 |
| |
|
0 commit comments
Comments
(0)