getting pid of backend

Поиск
Список
Период
Сортировка
От Kovacs Zoltan
Тема getting pid of backend
Дата
Msg-id Pine.LNX.4.21.0203051749440.13485-100000@pc10.radnoti-szeged.sulinet.hu
обсуждение исходный текст
Ответы Re: getting pid of backend  ("Josh Berkus" <josh@agliodbs.com>)
Список pgsql-sql
Is there a way to read the pid of the actual backend from SQL? I know a
dirty workaround: 

setting debug=2, log_pid=yes in postgresql.conf;

writing a function doing this:

executing a 'SELECT a_generated_random_number';
while not found pidreading from the postmaster log waiting for a_generated_random_number.

Is there an easier method?

--                         Kov\'acs, Zolt\'an                        kovacsz@pc10.radnoti-szeged.sulinet.hu
          http://www.math.u-szeged.hu/~kovzol                        ftp://pc10.radnoti-szeged.sulinet.hu/home/kovacsz
 




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

Предыдущее
От: Ismail Bouabdallah
Дата:
Сообщение: ERROR: fmgr_info: function 56664: cache lookup failed
Следующее
От: "Josh Berkus"
Дата:
Сообщение: Re: getting pid of backend