Re: proposal: psql: psql variable BACKEND_PID

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: proposal: psql: psql variable BACKEND_PID
Дата
Msg-id 4e9f721a-21f4-8b4b-f854-13063f5a5762@enterprisedb.com
обсуждение исходный текст
Ответ на proposal: psql: psql variable BACKEND_PID  (Pavel Stehule <pavel.stehule@gmail.com>)
Ответы Re: proposal: psql: psql variable BACKEND_PID  (Pavel Stehule <pavel.stehule@gmail.com>)
Список pgsql-hackers
On 03.02.23 11:41, Pavel Stehule wrote:
> We can simply allow an access to backend process id thru psql variable. 
> I propose the name "BACKEND_PID". The advantages of usage are simple 
> accessibility by command \set, and less typing then using function 
> pg_backend_pid, because psql variables are supported by tab complete 
> routine. Implementation is very simple, because we can use the function 
> PQbackendPID.

What would this be useful for?

You can mostly do this using

     select pg_backend_pid() AS "BACKEND_PID" \gset




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

Предыдущее
От: Masahiko Sawada
Дата:
Сообщение: Re: Exit walsender before confirming remote flush in logical replication
Следующее
От: Hans Buschmann
Дата:
Сообщение: AW: Wrong rows estimations with joins of CTEs slows queries by more than factor 500