Re: Limit allocated memory per session - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Limit allocated memory per session
Date
Msg-id 20754.1254415025@sss.pgh.pa.us
Whole thread Raw
In response to Re: Limit allocated memory per session  (Euler Taveira de Oliveira <euler@timbira.com>)
List pgsql-hackers
Euler Taveira de Oliveira <euler@timbira.com> writes:
> I see. Tough problem is: how do we get per backend memory usage accurately? Is
> it relying on OS specific API the only way?

Given all the third-party libraries (perl, python, libxml2, yadda yadda)
that can be in use and won't go through palloc, I think that this would
have to be done at the OS level to be very meaningful.

The other problem is the one Robert touched on: what you actually *want*
is something entirely different, namely for the backend to actively try
to meet an overall target for its memory usage, rather than having
queries fail ungracefully when they hit an arbitrary limit that the
planner didn't even know about.
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Kevin Grittner"
Date:
Subject: Re: FSM search modes
Next
From: Simon Riggs
Date:
Subject: Re: FSM search modes