From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jeff Davis <jdavis@wasabimg.com>
Cc: pgsql-general@postgresql.org
Subject: Re: Explain
Date: Fri, 05 Jan 2001 11:43:24 -0500
Message-ID: <10245.978713004@sss.pgh.pa.us> (raw)
In-Reply-To: <0101050121130A.01054@jdavis>
References: <0101050121130A.01054@jdavis>
Jeff Davis <jdavis@wasabimg.com> writes:
> How can I conveniently handle output from an EXPLAIN query inside an
> application? It appears to just immediately send the output to the stdout of
> whatever program uses it. Is there a way to get the output inside a program,
> with libpq or otherwise?
The EXPLAIN result is sent as a NOTICE message, so you can trap it by
setting libpq's notice processor function --- see PQsetNoticeProcessor.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, jdavis@wasabimg.com
Subject: Re: Explain
In-Reply-To: <10245.978713004@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox