On Thursday, April 7, 2022, Boris Zentner <b...@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.