continuation character for meta commands in psql

Started by Matt Zagrabelnyabout 6 years ago3 messagesgeneral
Jump to latest
#1Matt Zagrabelny
mzagrabe@d.umn.edu

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

#2Adrian Klaver
adrian.klaver@aklaver.com
In reply to: Matt Zagrabelny (#1)
Re: continuation character for meta commands in psql

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

#3Tom Lane
tgl@sss.pgh.pa.us
In reply to: Matt Zagrabelny (#1)
Re: continuation character for meta commands in psql

Matt Zagrabelny <mzagrabe@d.umn.edu> writes:

Is there a continuation character for meta commands in psql?

No.

regards, tom lane