Skip site navigation (1) Skip section navigation (2)

Re: Changing the continuation-line prompt in psql?

From: Stephen Frost <sfrost(at)snowman(dot)net>
To: Christopher Browne <cbbrowne(at)gmail(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Changing the continuation-line prompt in psql?
Date: 2011-04-29 17:23:31
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
* Christopher Browne (cbbrowne(at)gmail(dot)com) wrote:
> It seems like pretty serious bikeshedding to try to come up with an
> operator to express "do as many of character X as the length of
> variable $FOO".

How about "pad with spaces to line up prompt", or such?  In general, I
like the idea of having spaces there instead of the db name.

> The "bike shedding" that I'd rather have would involve enclosing
> prompts with /* comments */ so that cut'n'paste could be expected to
> generate output that could run, without further editing, in another
> psql session.  Mind you, whenever I have configured such, I have been
> unhappy at how wide that makes the prompt and at the loss of screen
> space.

Uhm..  With the above, perhaps "--%Z+>", which would generate:

--      +>




In response to


pgsql-hackers by date

Next:From: Tom LaneDate: 2011-04-29 17:27:57
Subject: Re: Changing the continuation-line prompt in psql?
Previous:From: Tom LaneDate: 2011-04-29 17:14:53
Subject: Re: BUG #5998: CLUSTER and "ERROR: missing chunk number 0 for toast value"

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group