log_statement / log_duration / log_min_duration_statement and SPI?
log_statement / log_duration / log_min_duration_statement and SPI?
От:
Maciek Sakrejda <msakrejda@truviso.com>
Дата:
Hi, Is there any way to get log_min_duration_statement / log_statement / log_duration to work with queries issued through SPI? If this is not possible with a stock configuration, anyone of a patch that might be floating out there to add this? Thanks, --- Maciek Sakrejda | System Architect | Truviso 1065 E. Hillsdale Blvd., Suite 215 Foster City, CA 94404 (650) 242-3500 Main www.truviso.com
Re: log_statement / log_duration / log_min_duration_statement and SPI?
От:
Jeff Davis <pgsql@j-davis.com>
Дата:
On Fri, 2010-08-13 at 09:56 -0700, Maciek Sakrejda wrote: > Hi, > > Is there any way to get log_min_duration_statement / log_statement / > log_duration to work with queries issued through SPI? If this is not > possible with a stock configuration, anyone of a patch that might be > floating out there to add this? > In 8.4+ there is auto_explain, a contrib module: http://www.postgresql.org/docs/current/static/auto-explain.html See "auto_explain.log_nested_statements". Regards, Jeff Davis