postgresql/src/backend/storage
Andres Freund 3bdcf6a5a7 Don't allow to disable backend assertions via the debug_assertions GUC.
The existance of the assert_enabled variable (backing the
debug_assertions GUC) reduced the amount of knowledge some static code
checkers (like coverity and various compilers) could infer from the
existance of the assertion. That could have been solved by optionally
removing the assertion_enabled variable from the Assert() et al macros
at compile time when some special macro is defined, but the resulting
complication doesn't seem to be worth the gain from having
debug_assertions. Recompiling is fast enough.

The debug_assertions GUC is still available, but readonly, as it's
useful when diagnosing problems. The commandline/client startup option
-A, which previously also allowed to enable/disable assertions, has
been removed as it doesn't serve a purpose anymore.

While at it, reduce code duplication in bufmgr.c and localbuf.c
assertions checking for spurious buffer pins. That code had to be
reindented anyway to cope with the assert_enabled removal.
2014-06-20 11:09:17 +02:00
..
buffer Don't allow to disable backend assertions via the debug_assertions GUC. 2014-06-20 11:09:17 +02:00
file pgindent run for 9.4 2014-05-06 12:12:18 -04:00
freespace pgindent run for 9.4 2014-05-06 12:12:18 -04:00
ipc Fix misc typos in comments. 2014-05-23 08:16:21 -04:00
large_object Add defenses against running with a wrong selection of LOBLKSIZE. 2014-06-05 11:31:06 -04:00
lmgr Don't allow to disable backend assertions via the debug_assertions GUC. 2014-06-20 11:09:17 +02:00
page pgindent run for 9.4 2014-05-06 12:12:18 -04:00
smgr pgindent run for 9.4 2014-05-06 12:12:18 -04:00
Makefile Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00