Re: Tuning queries inside a function - Mailing list pgsql-general

From Joshua D. Drake
Subject Re: Tuning queries inside a function
Date
Msg-id 42729017.9060805@commandprompt.com
Whole thread Raw
In response to Re: Tuning queries inside a function  (Alvaro Herrera <alvherre@dcc.uchile.cl>)
Responses Re: Tuning queries inside a function  (Mike Nolan <nolan@gw.tssi.com>)
List pgsql-general
>
> Huh, sorry, this doesn't work ... we don't allow DECLARE for EXPLAIN.
> It'd be neat though ...

What about having a debug mode for the function. E.g:

selet * from foo('bar','debug')

When you run with debug it actually runs the function but outputs
notices that are the explain anaylze of each function? You might
I would have to check be able to include a timestamp at the beginning
of each notice.

This will allow you to figure out where your slow downs are that are
not query related?

Sincerely,

Joshua D. Drake


>


--
Your PostgreSQL solutions company - Command Prompt, Inc. 1.800.492.2240
PostgreSQL Replication, Consulting, Custom Programming, 24x7 support
Managed Services, Shared and Dedication Hosting
Co-Authors: plPHP, plPerlNG - http://www.commandprompt.com/

pgsql-general by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Tuning queries inside a function
Next
From: typing80wpm@aol.com
Date:
Subject: p2p ip connection problems