Re: Q: explain on delete - Mailing list pgsql-general

From Tilo Schwarz
Subject Re: Q: explain on delete
Date
Msg-id 200302050009.33136.mail@tilo-schwarz.de
Whole thread Raw
In response to Re: Q: explain on delete  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Tom Lane writes:

> As of CVS tip there's finally a real solution: you can PREPARE the
> parameterized query and then EXPLAIN EXECUTE it.  For example,
> given something like
>
>     SELECT * FROM foo WHERE col = $1
>
> you could do
>
>     PREPARE q1(int) AS SELECT * FROM foo WHERE col = $1
>     EXPLAIN EXECUTE q1(42)

Nice, I'll try that...

Regards,

    Tilo

pgsql-general by date:

Previous
From: John Smith
Date:
Subject: Re: UPDATE slow
Next
From: Stephan Szabo
Date:
Subject: Re: UPDATE slow