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

Re: Changing the continuation-line prompt in psql?

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: David E(dot) Wheeler <david(at)kineticode(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Magnus Hagander <magnus(at)hagander(dot)net>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Changing the continuation-line prompt in psql?
Date: 2011-04-29 16:17:47
Message-ID: 1304093826-sup-2013@alvh.no-ip.org (view raw or flat)
Thread:
Lists: pgsql-hackers
Excerpts from David E. Wheeler's message of vie abr 29 13:04:35 -0300 2011:
> On Apr 29, 2011, at 8:22 AM, Tom Lane wrote:
> 
> > AFAICT the initial prompt is always "mysql> ", so they don't have to
> > think hard about how many spaces to insert to make it line up.  But
> > we could certainly invent a prompt escape that means "as many spaces
> > as there are characters in the current DB name".  (Or maybe we should
> > try to generalize that idea, so you could get similar behavior for
> > custom prompts involving usernames etc?)
> 
> +1 I like this idea, so the prompt might by default be
> 
>     postgres=> 
>             +> 

That was my immediate thought after seeing Magnus' response too.

-- 
Álvaro Herrera <alvherre(at)commandprompt(dot)com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to

Responses

pgsql-hackers by date

Next:From: Christopher BrowneDate: 2011-04-29 16:45:44
Subject: Re: Changing the continuation-line prompt in psql?
Previous:From: David E. WheelerDate: 2011-04-29 16:04:35
Subject: Re: Changing the continuation-line prompt in psql?

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