Getting linux $USER (and perhaps other env vars) in PL/pg-sql?

Поиск
Список
Период
Сортировка
От Gauthier, Dave
Тема Getting linux $USER (and perhaps other env vars) in PL/pg-sql?
Дата
Msg-id 482E80323A35A54498B8B70FF2B8798004156B82D3@azsmsx504.amr.corp.intel.com
обсуждение исходный текст
Ответы Re: Getting linux $USER (and perhaps other env vars) in PL/pg-sql?
Список pgsql-general

Hi:

 

Running 8.3.4 on Linux.

 

From inside a stored procedure, is there a way to capture the linux user (environment var = $USER) that is attached to the DB?  

 

A simplistic (though meaningless) example would be echo $USER from something like “select get_linux_user()”.

 

Thanks

-dave

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

Предыдущее
От: "Bill Bartlett"
Дата:
Сообщение: Re: psql and Emacs on Windows
Следующее
От: Sam Mason
Дата:
Сообщение: Re: Getting linux $USER (and perhaps other env vars) in PL/pg-sql?