Re: explain with placeholders?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Dan Sugalski <dan(at)sidhe(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: explain with placeholders?
Date: 2004-09-07 14:39:44
Message-ID: 532.1094567984@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Dan Sugalski <dan(at)sidhe(dot)org> writes:
> Is there any way to convince explain to go do its thing when given a
> query with placeholders in it?

PREPARE foo(...) AS SELECT ...

EXPLAIN EXECUTE foo(...)

EXPLAIN EXECUTE is a relatively recent addition, but I'm sure it's in
7.4 at least.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Mr Pink 2004-09-07 14:46:56 Re: ERROR: canceling query due to user request
Previous Message Tom Lane 2004-09-07 14:38:38 Re: restricting non superuser from accessing other