Re: Transaction-lifespan memory leak with plpgsql DO blocks - Mailing list pgsql-hackers

From Andres Freund
Subject Re: Transaction-lifespan memory leak with plpgsql DO blocks
Date
Msg-id 20131112162214.GE23777@awork2.anarazel.de
Whole thread Raw
In response to Transaction-lifespan memory leak with plpgsql DO blocks  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On 2013-11-12 11:18:32 -0500, Tom Lane wrote:
> Or we could say "what the heck are you doing executing tens of
> thousands of DO blocks?  Make it into a real live function;
> you'll save a lot of cycles on parsing costs."  I'm not sure that
> this is a usage pattern we ought to be optimizing for.

Exactly, I think it's not worth spending much code/complexity on that
issue.

Greetings,

Andres Freund

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



pgsql-hackers by date:

Previous
From: Stephen Frost
Date:
Subject: Re: Errors on missing pg_subtrans/ files with 9.3
Next
From: Tom Lane
Date:
Subject: Re: What's needed for cache-only table scan?