On 2022-10-29 20:20:50 -0700, Bryn Llewellyn wrote:
> My problem stems from the fact that the goal statement that my inner
> voice expresses seems so simple to state. This is what I want:
> 
> 1. I want to do this at the O/S prompt on the machine where my PG cluster has
> been started: "su mary".
> 
> 2. Then I want to start a session (I use "psql" here an an example) like 
> this: 
> "psql -d postgres".
> 
> 3. Then, at the "psql" prompt, I want "select session_user" to show "bob".

Set the PGUSER=bob in mary's environment.

        hp

-- 
   _  | Peter J. Holzer    | Story must make more sense than reality.
|_|_) |                    |
| |   | h...@hjp.at         |    -- Charles Stross, "Creative writing
__/   | http://www.hjp.at/ |       challenge!"

Attachment: signature.asc
Description: PGP signature

Reply via email to