Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YfqwT-0006pi-0G for pgsql-docs@arkaria.postgresql.org; Wed, 08 Apr 2015 14:26:57 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YfqwS-0006cp-D9 for pgsql-docs@arkaria.postgresql.org; Wed, 08 Apr 2015 14:26:56 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YfqwR-0006b3-6y for pgsql-docs@postgresql.org; Wed, 08 Apr 2015 14:26:55 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1YfqwA-0008JN-Ii for pgsql-docs@postgresql.org; Wed, 08 Apr 2015 14:26:53 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1Yfqw7-0004tC-PO; Wed, 08 Apr 2015 10:26:35 -0400 Date: Wed, 8 Apr 2015 10:26:35 -0400 From: Bruce Momjian To: David Johnston Cc: "pgsql-docs@postgresql.org" Subject: Re: libpq "service" parameter not documented as not allowed inside a pg_service file Message-ID: <20150408142635.GA4785@momjian.us> References: <20150401205248.GB13005@momjian.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150401205248.GB13005@momjian.us> User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-docs Precedence: bulk Sender: pgsql-docs-owner@postgresql.org On Wed, Apr 1, 2015 at 04:52:48PM -0400, Bruce Momjian wrote: > On Fri, Dec 19, 2014 at 06:52:42PM -0700, David Johnston wrote: > > While the fact that you cannot do: > > > > [service_template] > > host=xxx.xxx.xxx.xxx > > > > [service_db1] > > dbname=db1 > > service=service_template > > > > seems obvious there is nothing in the documentation that says this is > > prohibited; and attempting a simple alias entry: > > I have developed the attached patch to warn users that nesting of > service entries is not supported. I prefer code warnings over > documentation because the user gets the warning as soon as they try > something, rather than having to hunt in the documentation. I don't > think this issue has come up enough to warrant a doc mention too though. Patch applied. Thanks for the report. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + Everyone has their own god. + -- Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-docs