Re: Performance of subselects - Mailing list pgsql-general

From Scott Marlowe
Subject Re: Performance of subselects
Date
Msg-id dcc563d10903081215q5582d8dhd6ce499c8cbca302@mail.gmail.com
Whole thread Raw
In response to Re: Performance of subselects  (Grzegorz Jaśkiewicz <gryzman@gmail.com>)
Responses Re: Performance of subselects  (Christian Schröder <cs@deriva.de>)
List pgsql-general
On Sun, Mar 8, 2009 at 12:47 PM, Grzegorz Jaśkiewicz <gryzman@gmail.com> wrote:
> work_mem constraints amount of memory allocated per connection, hence

Actually, it's per sort. And there can be > 1 sort per query.

> you can run out of memory if too many connections try to use too much
> of it at the same time, that's why it is advisable to set work_mem per
> connection/query, should the connection/query require more.

Definitely.

pgsql-general by date:

Previous
From: Scott Marlowe
Date:
Subject: Re: Random Deadlock on DROP CONSTRAINT
Next
From: John R Pierce
Date:
Subject: Re: Enable user access from remote host