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

psql: \dg off by one error

From: Josh Kupershmidt <schmiddy(at)gmail(dot)com>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: psql: \dg off by one error
Date: 2011-02-27 00:21:05
Message-ID: AANLkTimgbL9SHLXj38Qtmo6vmuwocW5rRLCKWQmO1bxE@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-hackers
Hi all,

I noticed an off by one error in psql's verbose-mode display for \dg
and \du. In verbose mode, \dg and \du will not display the
"Replication" attribute:

test=# \dg rep
            List of roles
 Role name | Attributes  | Member of
-----------+-------------+-----------
 rep       | Replication | {}

test=# \dg+ rep
                  List of roles
 Role name | Attributes | Member of | Description
-----------+------------+-----------+-------------
 rep       |            | {}        |


Attached is a one line patch to fix.

Josh

Attachment: psql_replication_display.patch
Description: text/x-patch (720 bytes)

Responses

pgsql-hackers by date

Next:From: forkDate: 2011-02-27 00:40:29
Subject: Re: Generalized edit function?
Previous:From: AntonDate: 2011-02-26 23:40:28
Subject: Native XML

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