X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 315E011F6625 for ; Mon, 3 Apr 2006 16:23:55 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 64578-07 for ; Mon, 3 Apr 2006 16:23:54 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 1200311F60A9 for ; Mon, 3 Apr 2006 16:23:52 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id k33JNo2k015872; Mon, 3 Apr 2006 15:23:50 -0400 (EDT) To: Alvaro Herrera cc: Kenji Morishige , pgsql-performance@postgresql.org Subject: Re: optimizing db for small table with tons of updates In-reply-to: <20060403190354.GC15756@surnet.cl> References: <20060403182403.GA12257@juniper.net> <15521.1144089550@sss.pgh.pa.us> <20060403190213.GA14328@juniper.net> <20060403190354.GC15756@surnet.cl> Comments: In-reply-to Alvaro Herrera message dated "Mon, 03 Apr 2006 15:03:54 -0400" Date: Mon, 03 Apr 2006 15:23:50 -0400 Message-ID: <15871.1144092230@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.114 required=5 tests=[AWL=0.114] X-Spam-Score: 0.114 X-Spam-Level: X-Archive-Number: 200604/31 X-Sequence-Number: 18115 Alvaro Herrera writes: > Kenji Morishige wrote: >> I've been stumped as to how to call psql from the command line without it >> prompting me for a password. Is there a enviornoment variable I can specify for >> the password or something I can place in .pgsql? I could write a perl wrapper >> around it, but I've been wondering how I can call psql -c without it prompting >> me. Is it possible? > Sure it is. Set up a .pgpass file. Also, consider whether a non-password-based auth method (eg, ident) might work for you. Personally, I wouldn't trust ident over TCP, but if your kernel supports it on unix-socket connections it is secure. regards, tom lane