Re: passing linux user to PG server as a variable ? - Mailing list pgsql-general

From Paul Förster
Subject Re: passing linux user to PG server as a variable ?
Date
Msg-id 0E3BFCEE-CF8A-4543-8A51-11980A350023@gmail.com
Whole thread Raw
In response to passing linux user to PG server as a variable ?  (David Gauthier <davegauthierpg@gmail.com>)
List pgsql-general
Hi David,

> On 17. Aug, 2020, at 21:52, David Gauthier <davegauthierpg@gmail.com> wrote:
>
> 9.6.7 on linux

ok, 12.4 here, but anyway. Try this:

$ psql -v osuser=foo
psql (12.4)
Type "help" for help.

postgres=# \echo :osuser
foo

Cheers,
Paul


pgsql-general by date:

Previous
From: Edson Richter
Date:
Subject: "Go" (lang) standard driver
Next
From: Tony Shelver
Date:
Subject: Fwd: "Go" (lang) standard driver