On Mon, Jan 18, 2016 at 11:24 PM, Tom Lane <t...@sss.pgh.pa.us> wrote: > Robert Haas <robertmh...@gmail.com> writes: >> Here is a patch that helps a good deal. I changed things so that when >> we create a context, we always allocate at least 1kB. > > That's going to kill performance in some other cases; subtransactions > in particular rely on the subtransaction's TransactionContext not causing > any actual malloc unless something gets put into the TransactionContext.
Sorry, I guess I wasn't clear: it increases the allocation for the context node itself to 1kB and uses the extra space to store a few allocations. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers