Re: Confusion on Assert() definition

2025-03-26 Thread Tom Lane
=?UTF-8?B?0JXQs9C+0YAg0JHRg9C00Y7QutC40L0=?= writes: > There's something about the definition of Assert() in postgres that I > don't really understand. Asserts are meant to be used for "can't happen" cases that would represent programming bugs. As such, they are made to do something in debug bu

Confusion on Assert() definition

2025-03-26 Thread Егор Будюкин
Hi all! There's something about the definition of Assert() in postgres that I don't really understand. Refering to src/include/c.h, if USE_ASSERT_CHECKING is not defined, Assert() is defined to be always true regardless of FRONTEND? Additionally, I lack understanding of why Assert() is meant to on