Remove useless Asserts in Result Cache code
David Rowley <drowley@postgresql.org>
Remove useless Asserts in Result Cache code Testing if an unsigned variable is >= 0 is pretty pointless. There's likely enough code in remove_cache_entry() to verify the cache memory accounting is correct in assert enabled builds. These Asserts were not adding much extra cover, even if they had been checking >= 0 on a signed variable. Reported-by: Andres Freund Discussion: https://postgr.es/m/20210402204734.6mo3nfacnljlicgn@alap3.anarazel.de
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/executor/nodeResultCache.c | modified | +0 −4 |
Discussion
Cited messages not in the archive:
20210402204734.6mo3nfacnljlicgn@alap3.anarazel.de