Re: Reducing memory usage of insert into select operations? - Mailing list pgsql-general

From Tom Lane
Subject Re: Reducing memory usage of insert into select operations?
Date
Msg-id 10054.1216414856@sss.pgh.pa.us
Whole thread Raw
In response to Re: Reducing memory usage of insert into select operations?  ("Francisco Reyes" <lists@stringsutils.com>)
List pgsql-general
"Francisco Reyes" <lists@stringsutils.com> writes:
> What is the overhead for each AfterTriggerEvent?

On a 64-bit machine it looks like they'd cost you about 80 bytes
each :-(.  A good deal of that is palloc overhead --- I wonder if
we should get rid of the separate-palloc-for-each-event design?

> When does the memory usage for those AfterTriggerEvents gets released? At
> commit?

Whenever the check is done; you'd have to read the rules about deferred
constraints ...

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Reducing memory usage of insert into select operations?
Next
From: aklaver@comcast.net (Adrian Klaver)
Date:
Subject: Re: Calling Python functions with parameters