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: 20110429172331.GK4548@tamriel.snowman.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
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:

postgres=>
-- +>

etc.

Thanks,

Stephen

In response to

Responses

Browse pgsql-hackers by date

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