Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id D130E476395 for ; Thu, 4 Jul 2002 11:37:06 -0400 (EDT) Mailbox-Line: From pgman@candle.pha.pa.us Thu Jul 4 11:37:06 2002 Received: from candle.pha.pa.us (216-55-132-35.dsl.san-diego.abac.net [216.55.132.35]) by postgresql.org (Postfix) with ESMTP id C681A4762F1 for ; Thu, 4 Jul 2002 11:23:28 -0400 (EDT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.10.1) id g64FNQY21481; Thu, 4 Jul 2002 11:23:26 -0400 (EDT) From: Bruce Momjian Message-Id: <200207041523.g64FNQY21481@candle.pha.pa.us> Subject: Re: Authentication in batch processing In-Reply-To: To: Alfred Anzlovar Date: Thu, 4 Jul 2002 11:23:25 -0400 (EDT) Cc: Alfred Anzlovar , pgsql-admin@postgresql.org X-Mailer: ELM [version 2.4ME+ PL99 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, hits=-3.4 required=5.0 tests=IN_REP_TO version=2.30 X-Spam-Level: X-Archive-Number: 200207/62 X-Sequence-Number: 4748 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