Re: [PERFORM] setting configuration values inside a stored proc

2011-05-13 Thread Samuel Gendler
On Fri, May 13, 2011 at 1:28 AM, Andres Freund wrote: > Hi, > > On Friday, May 13, 2011 01:10:19 AM Samuel Gendler wrote: > > I would suggest doing ALTER FUNCTION blub(blarg) SET work_mem = '512MB'; > > Ah! That's perfect and very convenient. Thanks. --sam

Re: [PERFORM] setting configuration values inside a stored proc

2011-05-13 Thread Andres Freund
Hi, On Friday, May 13, 2011 01:10:19 AM Samuel Gendler wrote: > I've got a stored proc that constructs some aggregation queries as strings > and then executes them. I'd like to be able to increase work_mem before > running those queries. If I set a new value for work_mem within the stored > proc

[PERFORM] setting configuration values inside a stored proc

2011-05-12 Thread Samuel Gendler
I've got a stored proc that constructs some aggregation queries as strings and then executes them. I'd like to be able to increase work_mem before running those queries. If I set a new value for work_mem within the stored proc prior to executing my query string, will that actually have an impact