X-Original-To: pgsql-hackers-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 4C1BC9DCABA for ; Sat, 18 Feb 2006 15:19:46 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 80012-10 for ; Sat, 18 Feb 2006 15:19:45 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from tigger.fuhr.org (tigger.fuhr.org [63.214.45.158]) by postgresql.org (Postfix) with ESMTP id D3ABC9DCA77 for ; Sat, 18 Feb 2006 15:19:42 -0400 (AST) Received: from winnie.fuhr.org (winnie.fuhr.org [10.1.0.1]) by tigger.fuhr.org (8.13.3/8.13.3) with ESMTP id k1IJJeVL062695 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 18 Feb 2006 12:19:42 -0700 (MST) (envelope-from mfuhr@winnie.fuhr.org) Received: from winnie.fuhr.org (localhost [127.0.0.1]) by winnie.fuhr.org (8.13.4/8.13.4) with ESMTP id k1IJJdUd001175; Sat, 18 Feb 2006 12:19:39 -0700 (MST) (envelope-from mfuhr@winnie.fuhr.org) Received: (from mfuhr@localhost) by winnie.fuhr.org (8.13.4/8.13.4/Submit) id k1IJJdPB001174; Sat, 18 Feb 2006 12:19:39 -0700 (MST) (envelope-from mfuhr) Date: Sat, 18 Feb 2006 12:19:39 -0700 From: Michael Fuhr To: Martijn van Oosterhout Cc: pgsql-hackers@postgresql.org Subject: Re: Config file for psql Message-ID: <20060218191939.GA1064@winnie.fuhr.org> References: <20060218185222.GG20716@svana.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060218185222.GG20716@svana.org> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.121 required=5 tests=[AWL=0.121] X-Spam-Score: 0.121 X-Spam-Level: X-Archive-Number: 200602/716 X-Sequence-Number: 79854 On Sat, Feb 18, 2006 at 07:52:22PM +0100, Martijn van Oosterhout wrote: > A little while ago there was someone asking for tools to make it easier > to connect to multiple servers. It occured to me that it might be > useful to have a config file the way ssh does it: Something like pg_service.conf? Hardly anybody ever mentions it even though the libpq documentation refers to it; I wonder how many people even know it exists. http://www.postgresql.org/docs/8.1/interactive/libpq.html#LIBPQ-CONNECT http://www.postgresql.org/docs/8.1/interactive/libpq-envars.html -- Michael Fuhr