Re: Any way to see what queries are currently running?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Any way to see what queries are currently running?
Дата
Msg-id 20100.1124155990@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Any way to see what queries are currently running?  (Chris Hoover <revoohc@gmail.com>)
Список pgsql-admin
Chris Hoover <revoohc@gmail.com> writes:
> I'm running 7.3.4.  Is there anyway to see the actual sql being run by
> the database via a query?  I am having some problems with long running
> load causing querires from our reporting system.  I have sql logging
> turned on to log the sql statements to my postgres.log file.  However,
> these reporting queries do not appear to be logging the entire query.
> I am only getting the select clause (and I'm not sure if it's all of
> it) but no from or where clause.

That seems exceedingly improbable.  Are you sure you are reading the log
correctly?  If the source queries are formatted as multiple lines, the
log output will be broken across lines too ...

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: vacuumdb -a -f
Следующее
От: adey
Дата:
Сообщение: Re: Any way to see what queries are currently running?