Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 54926632D05 for ; Tue, 27 Jul 2010 15:24:31 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 36155-02 for ; Tue, 27 Jul 2010 18:24:23 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from spinlock.commandprompt.com (host-215.commandprompt.net [207.173.203.215]) by mail.postgresql.org (Postfix) with ESMTP id 30BC9632B4E for ; Tue, 27 Jul 2010 15:24:23 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by spinlock.commandprompt.com (Postfix) with ESMTP id 524E7348034; Tue, 27 Jul 2010 11:24:17 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at commandprompt.com Received: from spinlock.commandprompt.com ([127.0.0.1]) by localhost (spinlock.commandprompt.com.commandprompt.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cB+VoCijwkPz; Tue, 27 Jul 2010 11:24:12 -0700 (PDT) Received: from [75.142.153.107] (unknown [75.142.153.107]) by spinlock.commandprompt.com (Postfix) with ESMTPSA id 7632C348002; Tue, 27 Jul 2010 11:24:12 -0700 (PDT) Subject: Re: psql shell with no password prompt From: "Joshua D. Drake" Reply-To: jd@commandprompt.com To: Steve.Toutant@inspq.qc.ca Cc: Kevin Grittner , pgsql-admin@postgresql.org In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Organization: Command Prompt, Inc. Date: Tue, 27 Jul 2010 11:24:04 -0700 Message-ID: <1280255044.27165.1461.camel@jd-desktop.unknown.charter.com> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201007/196 X-Sequence-Number: 35215 On Tue, 2010-07-27 at 14:16 -0400, Steve.Toutant@inspq.qc.ca wrote: > > Thanks Kevin, > Which of these 2 methods is the best practice? > > It is working with pgpass. > But not yet with hba.conf > I tried this without success. > host all all 127.0.0.1/32 trust > > > steve Best practice? Use .pgpass, not trust. JD -- PostgreSQL.org Major Contributor Command Prompt, Inc: http://www.commandprompt.com/ - 509.416.6579 Consulting, Training, Support, Custom Development, Engineering http://twitter.com/cmdpromptinc | http://identi.ca/commandprompt