Hi! In Postgres Pro we have complaints about too large core dumps. The possible way to reduce code dump size is to skip some information. Frequently shared buffers is most long memory segment in core dump. For sure, contents of shared buffers is required for discovering many of bugs. But short core dump without shared buffers might be still useful. If system appears to be not capable to capture full core dump, short core dump appears to be valuable option.
Attached POC patch implements core_dump_no_shared_buffers GUC, which does madvise(MADV_DONTDUMP) for shared buffers. Any thoughts? ------ Alexander Korotkov Postgres Professional: http://www.postgrespro.com The Russian Postgres Company
0001-madvise_dontdump-v1.patch
Description: Binary data