Re: [PROPOSAL] Make PSQLVAR on \getenv opitional

Поиск
Список
Период
Сортировка
От Christoph Moench-Tegeder
Тема Re: [PROPOSAL] Make PSQLVAR on \getenv opitional
Дата
Msg-id YcuDxPSEmSo8V4HA@elch.exwg.net
обсуждение исходный текст
Ответ на Re: [PROPOSAL] Make PSQLVAR on \getenv opitional  (Pavel Stehule <pavel.stehule@gmail.com>)
Список pgsql-hackers
## Pavel Stehule (pavel.stehule@gmail.com):

> it is not consistent with other \g* commands. Maybe a new statement \senv
> ?  But what is the use case? You can just press ^z and inside shell write
> echo $xxx, and then fg

That does not work: backgrounding psql will put you into your original
shell, the parent process of psql. Changes in the environment of a
process do not change the environment of the parent.
Use \! to start a new shell process from psql, which will inherit psql's
environment.

Regards,
Christoph

-- 
Spare Space



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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Column Filtering in Logical Replication
Следующее
От: Jelte Fennema
Дата:
Сообщение: Re: [EXTERNAL] Re: Add ETIMEDOUT to ALL_CONNECTION_FAILURE_ERRNOS