Re: getting pid of backend
| От | Tom Lane |
|---|---|
| Тема | Re: getting pid of backend |
| Дата | |
| Msg-id | 19415.1015371443@sss.pgh.pa.us обсуждение |
| Ответ на | Re: getting pid of backend (Kovacs Zoltan <kovacsz@pc10.radnoti-szeged.sulinet.hu>) |
| Ответы |
Re: getting pid of backend
|
| Список | pgsql-sql |
Kovacs Zoltan <kovacsz@pc10.radnoti-szeged.sulinet.hu> writes:
> I mean the current pid number of the actual connection. Not the postmaster
> process, I need the pid of the currently running postgres. :-)
I don't believe it's available as a SQL query, but libpq can tell you
what it is.
Probably a more interesting question is "why do you want to know?".
I can't offhand think of a really good reason to use the backend pid
for anything on the client side, other than distinguishing self-notifies
from other notifies, which is not something you can do at the SQL level
anyway.
regards, tom lane
В списке pgsql-sql по дате отправления: