Re: psql \du [PATCH] extended \du with [+] - was missing

From: Andreas Wenk <a(dot)wenk(at)netzmeister-st-pauli(dot)de>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: psql \du [PATCH] extended \du with [+] - was missing
Date: 2009-07-17 15:38:13
Message-ID: 4A609AE5.3080701@netzmeister-st-pauli.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Peter Eisentraut schrieb:
> On Thursday 16 July 2009 02:12:05 ANdreas Wenk wrote:
>> Hi,
>>
>> I recognized in psql using the internal help (\?) that the *+* sign is
>> missing for the shortcut \du:
>>
>> # \du
>> List of roles
>> Role name | Attributes | Member of
>> --------------+--------------+-----------
>>
>> # \du+
>> List of roles
>> Role name | Attributes | Member of | Description
>> --------------+--------------+-----------+-------------
>>
>> Where shall I place this info? Is this also a bug?
>
> Looks like the help is missing this info. If you could provide a patch that
> also fixes up the translations, that would be most helpful.
>

Hi,

here is the patch for help.c . I think updating some translations is not neccessary
because there is no change. Am I right?

---
src/bin/psql/help.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/bin/psql/help.c b/src/bin/psql/help.c
index 5f13b8a..8a541e6 100644
--- a/src/bin/psql/help.c
+++ b/src/bin/psql/help.c
@@ -219,7 +219,7 @@ slashUsage(unsigned short int pager)
fprintf(output, _(" \\ds[S+] [PATTERN] list sequences\n"));
fprintf(output, _(" \\dt[S+] [PATTERN] list tables\n"));
fprintf(output, _(" \\dT[S+] [PATTERN] list data types\n"));
- fprintf(output, _(" \\du [PATTERN] list roles (users)\n"));
+ fprintf(output, _(" \\du[+] [PATTERN] list roles (users)\n"));
fprintf(output, _(" \\dv[S+] [PATTERN] list views\n"));
fprintf(output, _(" \\l[+] list all databases\n"));
fprintf(output, _(" \\z [PATTERN] same as \\dp\n"));
--
1.6.0.4

0001-extended-du-with-was-missing.patch (END)

Cheers

Andy

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Sharma, Sid 2009-07-17 16:09:57 Re: Idle in transaction
Previous Message Scott Marlowe 2009-07-17 15:23:47 Re: Asking for assistance in determining storage requirements