Re: [pgsql-patches] [PATCHES] Patch to log usage of temporary files - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [pgsql-patches] [PATCHES] Patch to log usage of temporary files
Date
Msg-id 9287.1168630145@sss.pgh.pa.us
Whole thread Raw
In response to Re: [pgsql-patches] [PATCHES] Patch to log usage of temporary files  ("Guillaume Smet" <guillaume.smet@gmail.com>)
Responses Re: [pgsql-patches] [PATCHES] Patch to log usage of temporary files
List pgsql-hackers
"Guillaume Smet" <guillaume.smet@gmail.com> writes:
> That's not what I had in mind. I was asking if the text of the query
> was available when logging the temp file usage. If so it could be good
> to add a DETAIL line with it directly and systematically when logging
> the temp file usage.

(1) you could make that argument about *any* log message whatsoever.

(2) there is already a generalized solution to this, it's called
log_min_error_statement.

            regards, tom lane

pgsql-hackers by date:

Previous
From: "Guillaume Smet"
Date:
Subject: Re: [pgsql-patches] [PATCHES] Patch to log usage of temporary files
Next
From: Bruce Momjian
Date:
Subject: Re: [pgsql-patches] [PATCHES] Patch to log usage of temporary