pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedcontinuation character for meta commands in psql
3+ messages / 3 participants
[nested] [flat]
* continuation character for meta commands in psql
@ 2020-01-24 17:42 Matt Zagrabelny <mzagrabe@d.umn.edu>
2020-01-24 17:45 ` Re: continuation character for meta commands in psql Adrian Klaver <adrian.klaver@aklaver.com>
2020-01-24 17:48 ` Re: continuation character for meta commands in psql Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 2 replies; 3+ messages in thread
From: Matt Zagrabelny @ 2020-01-24 17:42 UTC (permalink / raw)
To: pgsql-general
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!
-m
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: continuation character for meta commands in psql
2020-01-24 17:42 continuation character for meta commands in psql Matt Zagrabelny <mzagrabe@d.umn.edu>
@ 2020-01-24 17:45 ` Adrian Klaver <adrian.klaver@aklaver.com>
1 sibling, 0 replies; 3+ messages in thread
From: Adrian Klaver @ 2020-01-24 17:45 UTC (permalink / raw)
To: Matt Zagrabelny <mzagrabe@d.umn.edu>; pgsql-general
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
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: continuation character for meta commands in psql
2020-01-24 17:42 continuation character for meta commands in psql Matt Zagrabelny <mzagrabe@d.umn.edu>
@ 2020-01-24 17:48 ` Tom Lane <tgl@sss.pgh.pa.us>
1 sibling, 0 replies; 3+ messages in thread
From: Tom Lane @ 2020-01-24 17:48 UTC (permalink / raw)
To: Matt Zagrabelny <mzagrabe@d.umn.edu>; +Cc: pgsql-general
Matt Zagrabelny <mzagrabe@d.umn.edu> writes:
> Is there a continuation character for meta commands in psql?
No.
regards, tom lane
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2020-01-24 17:48 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-01-24 17:42 continuation character for meta commands in psql Matt Zagrabelny <mzagrabe@d.umn.edu>
2020-01-24 17:45 ` Adrian Klaver <adrian.klaver@aklaver.com>
2020-01-24 17:48 ` Tom Lane <tgl@sss.pgh.pa.us>
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