Re: psql removes dashed comments - Mailing list pgsql-general

From David G. Johnston
Subject Re: psql removes dashed comments
Date
Msg-id CAKFQuwZm=AbOC3O0QxAyave9GvcjQGx-F+OjJfjmkLC5ON9woQ@mail.gmail.com
Whole thread Raw
In response to psql removes dashed comments  (Boris Zentner <bzm@2bz.de>)
Responses Re: psql removes dashed comments  (Boris Zentner <bzm@2bz.de>)
List pgsql-general
On Thursday, April 7, 2022, Boris Zentner <bzm@2bz.de> wrote:

I was wondering why psql loose dashed comments and what can be done about this misbehaviour.

postgres=# \e


Because \e treats the query buffer as a single line of code and dashed comments cannot be used, just like meta-commands cannot be used.

Including a filename should establish the behavior you desire.

David J. 
 

pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: psql removes dashed comments
Next
From: "David G. Johnston"
Date:
Subject: Re: psql removes dashed comments