Re: Explain

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Explain
Дата
Msg-id 10245.978713004@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Explain  (Jeff Davis <jdavis@wasabimg.com>)
Список pgsql-general
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

В списке pgsql-general по дате отправления:

Предыдущее
От: nelson@radix.com.br
Дата:
Сообщение: Re: Max connections
Следующее
От: Tom Lane
Дата:
Сообщение: Re: select distinct null