]> granicus.if.org Git - postgresql/commit
Allocate local buffers in a context of their own, rather than dumping them
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 19 Aug 2010 16:16:20 +0000 (16:16 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 19 Aug 2010 16:16:20 +0000 (16:16 +0000)
commitbc7cb8f42cc607f1fcd2aca0a7b007fc8e9930d0
tree0cc077b9082f0b915878f92117b3144f0c879796
parente275d16a54de5595ed70cafd99c801af2fbdbc8b
Allocate local buffers in a context of their own, rather than dumping them
into TopMemoryContext.  This makes no functional difference, but makes it
easier to see what the space is being used for in MemoryContextStats dumps.
Per a recent example in which I was surprised by the size of TopMemoryContext.
src/backend/storage/buffer/localbuf.c