Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jJsMJ-0006kl-5L for pgsql-hackers@arkaria.postgresql.org; Thu, 02 Apr 2020 05:25:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jJsMH-0008VZ-VJ for pgsql-hackers@arkaria.postgresql.org; Thu, 02 Apr 2020 05:25:41 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jJsMH-0008VR-OF for pgsql-hackers@lists.postgresql.org; Thu, 02 Apr 2020 05:25:41 +0000 Received: from courriel-2.mines-paristech.fr ([77.158.173.19] helo=antispam-1.ensmp.fr) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jJsMF-00073t-7n for pgsql-hackers@lists.postgresql.org; Thu, 02 Apr 2020 05:25:41 +0000 Received: from smtp-5.mines-paristech.fr (smtp.mines-paristech.fr [77.158.173.146]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by antispam-1.ensmp.fr (antispam.mines-paristech.fr) with ESMTPS id 7658C567C7; Thu, 2 Apr 2020 07:25:37 +0200 (CEST) Received: from pseudo (108.237.219.88.rev.sfr.net [88.219.237.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp-5.mines-paristech.fr (Postfix) with ESMTPSA id 23F6920077; Thu, 2 Apr 2020 07:25:37 +0200 (CEST) Date: Thu, 2 Apr 2020 07:25:36 +0200 (CEST) From: Fabien COELHO X-X-Sender: fabien@pseudo To: Kyotaro Horiguchi cc: david.zhang@highgo.ca, PostgreSQL Developers , postgresql.org@coelho.net Subject: Re: Allow continuations in "pg_hba.conf" files In-Reply-To: <20200402.132543.416761724007436728.horikyota.ntt@gmail.com> Message-ID: References: <158578681240.24526.8013390670578487331.pgcf@coridan.postgresql.org> <20200402.132543.416761724007436728.horikyota.ntt@gmail.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-CLAMAV-SCAN: ok X-VRSPAM-SCORE: 0 X-VRSPAM-STATE: legit X-VRSPAM-CAUSE: gggruggvucftvghtrhhoucdtuddrgeduhedrtdefgdelhecutefuodetggdotefrucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvufgjkfhffgggtgesthdtredttdervdenucfhrhhomhephfgrsghivghnucevqffgnffjqfcuoegtohgvlhhhohestghrihdrvghnshhmphdrfhhrqeenucfkphepkeekrddvudelrddvfeejrddutdeknecurfgrrhgrmhepmhhouggvpehsmhhtphhouhht X-VRSPAM-EXTCAUSE: mhhouggvpehsmhhtphhouhht List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hello, > FWIW, I don't think so. Generally a trailing backspace is an escape > character for the following newline. And '\ ' is a escaped space, > which is usualy menas a space itself. > > In this case escape character doesn't work generally and I think it is > natural that a backslash in the middle of a line is a backslash > character itself. I concur: The backslash char is only a continuation as the very last character of the line, before cr/nl line ending markers. There are no assumption about backslash escaping, quotes and such, which seems reasonable given the lexing structure of the files, i.e. records of space-separated words, and # line comments. -- Fabien.