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 1ncYip-000874-CI for pgsql-general@arkaria.postgresql.org; Thu, 07 Apr 2022 20:27:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ncYin-00032O-UA for pgsql-general@arkaria.postgresql.org; Thu, 07 Apr 2022 20:27:13 +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 1ncYin-00032F-Jt for pgsql-general@lists.postgresql.org; Thu, 07 Apr 2022 20:27:13 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ncYik-0005we-RK for pgsql-general@postgresql.org; Thu, 07 Apr 2022 20:27:13 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 237KR3UF3399832; Thu, 7 Apr 2022 16:27:03 -0400 From: Tom Lane To: Adrian Klaver cc: Boris Zentner , pgsql-general@postgresql.org Subject: Re: psql removes dashed comments In-reply-to: <212b4116-6ae3-af8b-bc71-b9d8599f6ced@aklaver.com> References: <212b4116-6ae3-af8b-bc71-b9d8599f6ced@aklaver.com> Comments: In-reply-to Adrian Klaver message dated "Thu, 07 Apr 2022 11:29:49 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3399830.1649363223.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 07 Apr 2022 16:27:03 -0400 Message-ID: <3399831.1649363223@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Adrian Klaver writes: > On 4/7/22 11:25, Boris Zentner wrote: >> I was wondering why psql loose dashed comments and what can be done abo= ut this misbehaviour. > See this recent thread: > https://www.postgresql.org/message-id/265623A4-F304-4E68-90D0-343F614DB2= B7%40americanefficient.com This might be more on-point: https://www.postgresql.org/message-id/flat/CAJcOf-cAdMVr7azeYR7nWKsNp7qhOR= zc84rV6d7m7knG5Hrtsw%40mail.gmail.com regards, tom lane