psql: \dg off by one error - Mailing list pgsql-hackers

From Josh Kupershmidt
Subject psql: \dg off by one error
Date
Msg-id AANLkTimgbL9SHLXj38Qtmo6vmuwocW5rRLCKWQmO1bxE@mail.gmail.com
Whole thread Raw
Responses Re: psql: \dg off by one error  (Magnus Hagander <magnus@hagander.net>)
List 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

pgsql-hackers by date:

Previous
From: Anton
Date:
Subject: Native XML
Next
From: fork
Date:
Subject: Re: Generalized edit function?