Re: psql - small fix in \du

Lists: pgsql-hackers
From: ANdreas Wenk <a(dot)wenk(at)netzmeister-st-pauli(dot)de>
To: pgsql-hackers(at)postgresql(dot)org
Subject: psql - small fix in \du
Date: 2009-07-17 21:13:29
Message-ID: 4A60E979.5000700@netzmeister-st-pauli.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Hi,

attached you can find a very small patch for the help in psql (\?). It's
possible to use \du also as \du+ . The [+] was missing in help.

I was asking about this at the general list and Peter E. was asking me
to provide a patch. I sent the patch there but realized now, that this
was the wrong place to do so. Sorry for the flood ...

Cheers

Andy

Attachment Content-Type Size
psql-du.patch text/x-diff 791 bytes

From: Andreas Wenk <a(dot)wenk(at)netzmeister-st-pauli(dot)de>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: psql - small fix in \du
Date: 2009-07-22 10:45:45
Message-ID: 4A66EDD9.5010608@netzmeister-st-pauli.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

ANdreas Wenk schrieb:
> Hi,
>
> attached you can find a very small patch for the help in psql (\?). It's
> possible to use \du also as \du+ . The [+] was missing in help.
>
> I was asking about this at the general list and Peter E. was asking me
> to provide a patch. I sent the patch there but realized now, that this
> was the wrong place to do so. Sorry for the flood ...
>
> Cheers
>
> Andy
>

As written in another post \dg misses also the [+] so I changed that. Now I recognized
that I also have to change psql-ref.sgml (sorry did not see it in help.c). So I wanted to
update it and I am now wondering, what will be written in the description row when using
\du+ or \dg+. I am not sure when the function shobj_description(oid, name) is giving a
result.

Can anybody give me a hint or a scenario so that I can update the patch correctly?

Thanks a lot

Andy


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andreas Wenk <a(dot)wenk(at)netzmeister-st-pauli(dot)de>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: psql - small fix in \du
Date: 2009-07-22 13:19:16
Message-ID: 18711.1248268756@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Andreas Wenk <a(dot)wenk(at)netzmeister-st-pauli(dot)de> writes:
> I am not sure when the function shobj_description(oid, name) is giving a
> result.

That retrieves the comment for the object (the role, in this case).

regards, tom lane


From: Andreas Wenk <a(dot)wenk(at)netzmeister-st-pauli(dot)de>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: psql - small fix in \du
Date: 2009-07-22 19:33:25
Message-ID: 4A676985.1070404@netzmeister-st-pauli.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Tom Lane wrote:
> Andreas Wenk <a(dot)wenk(at)netzmeister-st-pauli(dot)de> writes:
>> I am not sure when the function shobj_description(oid, name) is giving a
>> result.
>
> That retrieves the comment for the object (the role, in this case).
>
> regards, tom lane
>
Tom, thank you. I will provide an updated patch tomorrow.

Cheers

Andy


From: Andreas Wenk <a(dot)wenk(at)netzmeister-st-pauli(dot)de>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: psql - small fix in \du
Date: 2009-07-23 10:29:51
Message-ID: 4A683B9F.9090604@netzmeister-st-pauli.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Tom Lane schrieb:
> Andreas Wenk <a(dot)wenk(at)netzmeister-st-pauli(dot)de> writes:
>> I am not sure when the function shobj_description(oid, name) is giving a
>> result.
>
> That retrieves the comment for the object (the role, in this case).
>
> regards, tom lane
>

attached you can find an updated patch. The changes are:

- change \du and \dg to \du+ and \dg+ in the docu
- change the same in psql/help.c
- change the translation files in psql/po

two questions on this:

- is it ok to provide all these changes in one patch?
- I did the patch with git format-patch and left the header in the patch. Ok?

Although Tom asked if the translation files should be patched at all, I sent them.

vi showed the foreign language signs in the patch utf-8 encoded and not as the character.
I imported the patch in my local master. The md5checksum was the same (e.g ja.po) an the
character are in original language. Everything was ok - so if there are problems, please
keep me informed.

Cheers

Andy

Attachment Content-Type Size
psql-du-and-dg-changes-including-translation.patch text/x-patch 0 bytes

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-hackers(at)postgresql(dot)org
Cc: Andreas Wenk <a(dot)wenk(at)netzmeister-st-pauli(dot)de>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Re: psql - small fix in \du
Date: 2009-07-24 19:36:15
Message-ID: 200907242236.20680.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Thursday 23 July 2009 13:29:51 Andreas Wenk wrote:
> attached you can find an updated patch. The changes are:
>
> - change \du and \dg to \du+ and \dg+ in the docu
> - change the same in psql/help.c
> - change the translation files in psql/po

Fixed, thanks.