Re: Authentication in batch processing - Mailing list pgsql-admin

From Bruce Momjian
Subject Re: Authentication in batch processing
Date
Msg-id 200207041523.g64FNQY21481@candle.pha.pa.us
Whole thread Raw
In response to Authentication in batch processing  (Hal Lynch <hal@cc.usu.edu>)
Responses Re: Authentication in batch processing  (Alfred Anzlovar <fredi@biff.logon.si>)
List pgsql-admin
Alfred Anzlovar wrote:
> Maybe this could/can be done differently, but as it was, it was so easy
> and nice. And if there are more of us, poor souls, with comparable
> problems maybe an option called '--pwd-from-stdin-only' would be a
> solution. Another option (thanks God for Open Source projects) is adding
> an option for prompting into psql by myself. But I see this is a rather
> drastic measure to get what I need/want.

How about PGUSER/PGPASSWORD?  That will work.  This is assuming you
don't have an OS (BSD?) that displays environment variables for a
process.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026



pgsql-admin by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Which DB is using space.
Next
From: Bruce Momjian
Date:
Subject: Re: Authentication in batch processing