access to psql variables from server again

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема access to psql variables from server again
Дата
Msg-id CAFj8pRASdzBsJ7TRxZ_bPUjj2Srje2T_Ay7hT86d3aBqtWgaCA@mail.gmail.com
обсуждение исходный текст
Список pgsql-hackers
Hello

I am returning to topic, that I opened with discussion about enhancing
protocol to support access to host variables.

There was a second idea about joining host variables and session
variables. This can be implemented without protocol enhancing, but it
is only one way tool - we are able read host parameters only on start
- but we can simply forward changes of session variables to host. I
have another idea - just for psql. We can define two commands to copy
psql variable to server and from server to psql. This mechanism is
very simple and robust. There is not problem with security or some
unwanted overhead.

\vf hostvar  [ sessionvar ] -- variable forward
\vl hostvar  [ sessionvar ] -- variable load

Name of session variable is optional, when is not specified, then
"host"."hostvar" is used.

Ideas, comments?

Regards

Pavel


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

Предыдущее
От: Amit kapila
Дата:
Сообщение: Re: external_pid_file not removed on postmaster exit
Следующее
От: Satoshi Nagayasu
Дата:
Сообщение: Re: Adding probes for smgr