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 7F69C11F66D3 for ; Mon, 3 Apr 2006 16:03:59 -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 61976-07 for ; Mon, 3 Apr 2006 16:03:57 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mx2.surnet.cl (mx2.surnet.cl [216.155.73.181]) by postgresql.org (Postfix) with ESMTP id 0E6A111F65F8 for ; Mon, 3 Apr 2006 16:03:55 -0300 (ADT) Received: from unknown (HELO cluster.surnet.cl) ([216.155.73.165]) by mx2.surnet.cl with ESMTP; 03 Apr 2006 15:03:54 -0400 X-IronPort-AV: i="4.02,198,1139194800"; d="scan'208"; a="40533745:sNHT18984012" Received: from alvh.no-ip.org (201.220.123.224) by cluster.surnet.cl (7.0.043) (authenticated as alvherre@surnet.cl) id 43A978FD00D31E23; Mon, 3 Apr 2006 15:03:54 -0400 Received: by alvh.no-ip.org (Postfix, from userid 1000) id 51C25C2DC4F; Mon, 3 Apr 2006 15:03:54 -0400 (CLT) Date: Mon, 3 Apr 2006 15:03:54 -0400 From: Alvaro Herrera To: Kenji Morishige Cc: Tom Lane , pgsql-performance@postgresql.org Subject: Re: optimizing db for small table with tons of updates Message-ID: <20060403190354.GC15756@surnet.cl> Mail-Followup-To: Kenji Morishige , Tom Lane , pgsql-performance@postgresql.org References: <20060403182403.GA12257@juniper.net> <15521.1144089550@sss.pgh.pa.us> <20060403190213.GA14328@juniper.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060403190213.GA14328@juniper.net> User-Agent: Mutt/1.5.11+cvs20060126 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=1.689 required=5 tests=[AWL=-0.230, DNS_FROM_RFC_ABUSE=0.479, DNS_FROM_RFC_POST=1.44] X-Spam-Score: 1.689 X-Spam-Level: * X-Archive-Number: 200604/29 X-Sequence-Number: 18113 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. -- Alvaro Herrera http://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc.