Re: Odd behavior with temp usage logging - Mailing list pgsql-performance

From Craig Ringer
Subject Re: Odd behavior with temp usage logging
Date
Msg-id 497EC24E.5040805@postnewspapers.com.au
Whole thread Raw
In response to Odd behavior with temp usage logging  (Josh Berkus <josh@agliodbs.com>)
Responses Re: Odd behavior with temp usage logging
List pgsql-performance
Josh Berkus wrote:
> Folks,
>
> I turned on temp file logging for PostgreSQL to see if I needed to
> adjust work_mem.  Oddly, it's logging file usage up to 33 times per
> executed query (and no, the query isn't large enough to need 33 separate
> sorts).

Are you sure there's not a sort happening inside a loop? It might help
if you posted the actual log messages along with the output of `EXPLAIN
ANALYZE' on your query.

--
Craig Ringer

pgsql-performance by date:

Previous
From: Josh Berkus
Date:
Subject: Odd behavior with temp usage logging
Next
From: A B
Date:
Subject: Re: [PERFORMANCE] Buying hardware