Re: stats_command_string default?

Поиск
Список
Период
Сортировка
От Kevin Brown
Тема Re: stats_command_string default?
Дата
Msg-id 20030307041031.GV1833@filer
обсуждение исходный текст
Ответ на Re: stats_command_string default?  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: stats_command_string default?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom Lane wrote:
> Kevin Brown <kevin@sysexperts.com> writes:

[...]

> > It would also be handy if users could see their own queries while the
> > rest remain blank.  That would require changing
> > pg_stat_get_backend_activity() so that it returns a value if the user
> > is the superuser or if the user asking for the answer is the same as
> > the user who owns the backend entry being looked up.  Are there any
> > pitfalls to implementing that?
>
> Seems reasonable offhand ...

Here's the patch to make this happen.  The first is against 7.2.4, the
second is against CVS tip.


If I got it wrong and need to use something other than GetUserId(),
please let me know.



--
Kevin Brown                          kevin@sysexperts.com

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

Предыдущее
От: "Marc G. Fournier"
Дата:
Сообщение: Bad crash, pg_clog files missing ... ?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Bad crash, pg_clog files missing ... ?