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 631D011F6B04 for ; Mon, 3 Apr 2006 16:29:05 -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 64845-07 for ; Mon, 3 Apr 2006 16:29:04 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from colo-dns-ext2.juniper.net (colo-dns-ext2.juniper.net [207.17.137.64]) by postgresql.org (Postfix) with ESMTP id AB29B11F6AFE for ; Mon, 3 Apr 2006 16:29:00 -0300 (ADT) Received: from merlot.juniper.net (merlot.juniper.net [172.17.27.10]) by colo-dns-ext2.juniper.net (8.12.3/8.12.3) with ESMTP id k33JSu1Z080781; Mon, 3 Apr 2006 12:28:56 -0700 (PDT) (envelope-from kenjim@juniper.net) Received: from kenjim-lnx.juniper.net (kenjim-lnx.juniper.net [172.17.58.60]) by merlot.juniper.net (8.11.3/8.11.3) with ESMTP id k33JSt515627; Mon, 3 Apr 2006 12:28:55 -0700 (PDT) (envelope-from kenjim@juniper.net) Received: from kenjim-lnx.juniper.net (kenjim-lnx.juniper.net [127.0.0.1]) by kenjim-lnx.juniper.net (8.13.4/8.13.4) with ESMTP id k33JStFi015610; Mon, 3 Apr 2006 12:28:55 -0700 Received: (from kenjim@localhost) by kenjim-lnx.juniper.net (8.13.4/8.13.4/Submit) id k33JSpB7015605; Mon, 3 Apr 2006 12:28:51 -0700 Date: Mon, 3 Apr 2006 12:28:51 -0700 From: Kenji Morishige To: Tom Lane Cc: Alvaro Herrera , pgsql-performance@postgresql.org, kenjim@juniper.net Subject: Re: optimizing db for small table with tons of updates Message-ID: <20060403192851.GB15302@juniper.net> References: <20060403182403.GA12257@juniper.net> <15521.1144089550@sss.pgh.pa.us> <20060403190213.GA14328@juniper.net> <20060403190354.GC15756@surnet.cl> <15871.1144092230@sss.pgh.pa.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <15871.1144092230@sss.pgh.pa.us> User-Agent: Mutt/1.4.2.1i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.12 required=5 tests=[AWL=0.120] X-Spam-Score: 0.12 X-Spam-Level: X-Archive-Number: 200604/32 X-Sequence-Number: 18116 Cool, looks like I had tried the .pgpass thing a while back and wasn't working, I realized I had a typo or something in there. It works like a charm. Security in our intranet is not a big issue at the moment. Thanks for the help! -Kenji On Mon, Apr 03, 2006 at 03:23:50PM -0400, Tom Lane wrote: > 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