Re: psql removes dashed comments

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Boris Zentner <bzm(at)2bz(dot)de>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: psql removes dashed comments
Date: 2022-04-07 18:41:29
Message-ID: CAKFQuwZm=AbOC3O0QxAyave9GvcjQGx-F+OjJfjmkLC5ON9woQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thursday, April 7, 2022, Boris Zentner <bzm(at)2bz(dot)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.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David G. Johnston 2022-04-07 18:48:15 Re: psql removes dashed comments
Previous Message Adrian Klaver 2022-04-07 18:29:49 Re: psql removes dashed comments