From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Matt Zagrabelny <mzagrabe@d.umn.edu>
To: pgsql-general@postgresql.org >> PG-General Mailing List <pgsql-general@postgresql.org>
Subject: Re: continuation character for meta commands in psql
Date: Fri, 24 Jan 2020 09:45:34 -0800
Message-ID: <1bf00d23-b125-54a8-71c9-e708270d7983@aklaver.com> (raw)
In-Reply-To: <CAOLfK3U=PAqYoHLWWD=deXDbAnqEv_J13vcZ6Mc_RDakwC1E9A@mail.gmail.com>
References: <CAOLfK3U=PAqYoHLWWD=deXDbAnqEv_J13vcZ6Mc_RDakwC1E9A@mail.gmail.com>
On 1/24/20 9:42 AM, Matt Zagrabelny wrote:
> Greetings,
>
> I've searched the internet and also the pgsql-general list for an answer
> to this question, but couldn't find one.
>
> Is there a continuation character for meta commands in psql?
>
> I've seen mention that a caret (^) could be used, but it didn't work
> correctly and the psql man page makes no mention of it.
>
> I'd like to do something like:
>
> \set PROMPT1 'long prompt code' \
> 'other long prompt configurations' \
> 'and more still'
>
> in my .psqlrc file.
>
> What do you folks think?
>
> Thanks for any help or guidance!
See:
https://www.postgresql.org/docs/12/app-psql.html
Meta-Commands
>
> -m
--
Adrian Klaver
adrian.klaver@aklaver.com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: adrian.klaver@aklaver.com, mzagrabe@d.umn.edu
Subject: Re: continuation character for meta commands in psql
In-Reply-To: <1bf00d23-b125-54a8-71c9-e708270d7983@aklaver.com>
References: <CAOLfK3U=PAqYoHLWWD=deXDbAnqEv_J13vcZ6Mc_RDakwC1E9A@mail.gmail.com> <1bf00d23-b125-54a8-71c9-e708270d7983@aklaver.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox