OSDN Git Service

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:27 +0000 (16:16 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 19 Aug 2010 16:16:27 +0000 (16:16 +0000)
commit67b4fcf80689da2bc89fcacea7bb80c871fa3429
treebfd3dbcfe11cb7f660b79572be0c2d1c00ac8a98
parent780a7dcb69bd9f48dc4656861ff6c75843544eb7
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