![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
The "wal_debug" GUC variable was of type "integer", but it was used in the code effectively as a boolean: the code only tested whether it was zero or non-zero. This patch makes it a proper boolean. |
#2
| |||
| |||
|
|
I agree with this, but would it be possible to fold it into the normal debug output mechanisms? I don't think debugging WAL is any more important nowadays than any other component. |
#3
| |||
| |||
|
|
I agree. Having a special debug variable for WAL seems like a short-term thing whose time has passed. You could probably even make that code a compile-time option like the others at the bottom of pg_config_manual.h. |
#4
| |||
| |||
|
|
I agree. Having a special debug variable for WAL seems like a short-term thing whose time has passed. |
#5
| |||
| |||
|
|
ISTM that there is little distinguishing wal_debug and the following GUC vars: log_btree_build_stats trace_notify trace_locks trace_userlocks trace_lwlocks debug_deadlocks trace_lock_oidmin trace_lock_table debug_shared_buffers Should these be changed as well? |
#6
| |||
| |||
|
|
The others are already #ifdef'd out by default, which is more or less what I was suggesting you do with the wal_debug code. |
#7
| |||
| |||
|
|
Tom Lane <tgl (AT) sss (DOT) pgh.pa.us> writes: The others are already #ifdef'd out by default, which is more or less what I was suggesting you do with the wal_debug code. (FWIW, trace_notify is not #ifdef'd out.) |
|
But I thought that you (and Peter) were suggesting that this shouldn't be made a GUC variable at all, just a preprocessor definition. |
#8
| |||
| |||
|
|
Unless anyone objects, I intend to apply this in 24 hours or so. |
![]() |
| Thread Tools | |
| Display Modes | |
| |