Deferring some AtStart* allocations? - Mailing list pgsql-hackers

From Andres Freund
Subject Deferring some AtStart* allocations?
Date
Msg-id 20140629231536.GG26930@awork2.anarazel.de
Whole thread Raw
Responses Re: Deferring some AtStart* allocations?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Hi,

In workloads with mostly simple statements, memory allocations are the
primary bottleneck. Some of the allocations are unlikely to be avoidable
without major work, but others seem superflous in many scenarios.

Why aren't we delaying allocations in e.g. AtStart_Inval(),
AfterTriggerBeginXact() to when the data structures are acutally used?
In most transactions neither will be?

Greetings,

Andres Freund

-- Andres Freund                       http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training &
Services



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: idle_in_transaction_timeout
Next
From: Tomas Vondra
Date:
Subject: Re: bad estimation together with large work_mem generates terrible slow hash joins