Re: silence and failure of SQL commands - Mailing list pgsql-novice

From Robert Poor
Subject Re: silence and failure of SQL commands
Date
Msg-id BANLkTi=jw8hPKL=2XAzJZBkM9J_h5JtnWA@mail.gmail.com
Whole thread Raw
In response to Re: silence and failure of SQL commands  (Leif Biberg Kristensen <leif@solumslekt.org>)
Responses Re: silence and failure of SQL commands
List pgsql-novice
Lief:

On Thu, Apr 28, 2011 at 13:42, Leif Biberg Kristensen
<leif@solumslekt.org> wrote:
> On Thursday 28 April 2011 22:22:24 Robert Poor wrote:
>> postgres=# SELECT * FROM users
>> +#
> The prompt for a regular user will appear as => while the =# shows that you're
> logged in as a super-user.

You are totally correct -- thou shalt not assume super-user privs
without cause.  I was using the "#" notation to be consistant with
Tom's previous post.

But this doesn't change my suggestion about changing

   \set PROMPT2 '+%# '

The "%#" token at the end expands to "#" for the super user and ">"
for us mere mortals.  So I could have typed my example as:

postgres=> SELECT * FROM users
+>

... which I think would satisfy the needs of new-ish users such as
myself and John.

- Rob

pgsql-novice by date:

Previous
From: Leif Biberg Kristensen
Date:
Subject: Re: silence and failure of SQL commands
Next
From: Leif Biberg Kristensen
Date:
Subject: Re: silence and failure of SQL commands