Sending Explain output to a perl client

From: wsheldah(at)lexmark(dot)com
To: pgsql-general(at)postgresql(dot)org
Subject: Sending Explain output to a perl client
Date: 2001-12-04 17:54:44
Message-ID: 200112041817.NAA01900@interlock2.lexmark.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

I'm trying to tune a query that includes a correlated subquery, by moving the
subquery to a temporary table and joining on that, hoping to improve things by
not executing the subquery for every row. My immediate problem is that since the
temporary table is session specific and I'm running it from perl, I can't paste
the SQL into a psql session to run EXPLAIN on it. Can I treat the EXPLAIN
results like a column from a regular result set and have perl retrieve it like a
regular column value, or is there another way to capture the EXPLAIN output from
a perl client?

Many thanks,

Wes Sheldahl

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Doug McNaught 2001-12-04 17:58:47 Re: java stored procedures
Previous Message Hannu Krosing 2001-12-04 17:30:33 Re: [HACKERS] Problem (bug?) with like