Patch to add objetct size on "\d+" verbose output

Lists: pgsql-hackers
From: "Dickson dos Santos Guedes" <guediz(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Patch to add objetct size on "\d+" verbose output
Date: 2008-04-11 17:53:20
Message-ID: f0b79c6f0804111053s10ec0edg73607a4a94d10d4@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Hi all,

I don't know if I can post a patch here (I did subscribe to
psql-patches but without success).

Well, working in the latest revision from CVS I added a feature for
psql to the command "\d+", now it shows the object size as like as
"\l+" show the database size.

I will be pretty glad with yours sugestions and opnion.

Thanks.
--
[]s
Dickson S. Guedes
-------------------------------------
Projeto Colmeia - Curitiba - PR
(41) 3254-7130 ramal: 27
http://makeall.wordpress.com/
http://planeta.postgresql.org.br/

Attachment Content-Type Size
psql-table-size-on-verbose.patch text/x-patch 1.5 KB

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Dickson dos Santos Guedes <guediz(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Patch to add objetct size on "\d+" verbose output
Date: 2008-04-11 18:27:35
Message-ID: 20080411182735.GD4392@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Dickson dos Santos Guedes escribió:

> Well, working in the latest revision from CVS I added a feature for
> psql to the command "\d+", now it shows the object size as like as
> "\l+" show the database size.
>

Added to May commitfest page, thanks.

--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.


From: "Brendan Jurd" <direvus(at)gmail(dot)com>
To: "Dickson dos Santos Guedes" <guediz(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Patch to add objetct size on "\d+" verbose output
Date: 2008-04-12 22:43:03
Message-ID: 37ed240d0804121543t27359acbx40b610c51c7436e3@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Sat, Apr 12, 2008 at 3:53 AM, Dickson dos Santos Guedes
<guediz(at)gmail(dot)com> wrote:
> Well, working in the latest revision from CVS I added a feature for
> psql to the command "\d+", now it shows the object size as like as
> "\l+" show the database size.
>

I was going to try this patch out, but it would not apply. Seems that
where the patch should have &, it has &amp; instead. Has this somehow
been HTML entity-ified?

Cheers,
BJ


From: "Dickson dos Santos Guedes" <guediz(at)gmail(dot)com>
To: "Brendan Jurd" <direvus(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Patch to add objetct size on "\d+" verbose output
Date: 2008-04-13 22:45:33
Message-ID: f0b79c6f0804131545n2d051fcdo5ad2c683b7c49e1a@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Sat, Apr 12, 2008 at 7:43 PM, Brendan Jurd <direvus(at)gmail(dot)com> wrote:
> I was going to try this patch out, but it would not apply. Seems that
> where the patch should have &, it has &amp; instead. Has this somehow
> been HTML entity-ified?

Hi Brendan,

You are right, I don't now why this occurs. I'm sending it now
gziped, You may test it again.

Thank you.
--
[]s
Dickson S. Guedes
-------------------------------------
Projeto Colmeia - Curitiba - PR
(41) 3254-7130 ramal: 27
http://makeall.wordpress.com/
http://planeta.postgresql.org.br/

Attachment Content-Type Size
psql-object-size-on-describe-verbose.patch.gz application/x-gzip 655 bytes

From: "Brendan Jurd" <direvus(at)gmail(dot)com>
To: "Dickson dos Santos Guedes" <guediz(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Patch to add objetct size on "\d+" verbose output
Date: 2008-04-14 04:21:31
Message-ID: 37ed240d0804132121i77495756h974e5a7814e1e994@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Mon, Apr 14, 2008 at 8:45 AM, Dickson dos Santos Guedes
<guediz(at)gmail(dot)com> wrote:
> On Sat, Apr 12, 2008 at 7:43 PM, Brendan Jurd <direvus(at)gmail(dot)com> wrote:
> > I was going to try this patch out, but it would not apply. Seems that
> > where the patch should have &, it has &amp; instead. Has this somehow
> > been HTML entity-ified?
>
> You are right, I don't now why this occurs. I'm sending it now
> gziped, You may test it again.
>

Hi Dickson,

I actually already corrected the '&amp;'s manually and tested your
patch like that. It's nice -- I think this is a very worthwhile
addition to \dt+

I note that your last email only went to -hackers; you might want to
send the updated version of your patch to -patches as well.

Cheers,
BJ


From: "Heikki Linnakangas" <heikki(at)enterprisedb(dot)com>
To: "Dickson dos Santos Guedes" <guediz(at)gmail(dot)com>
Cc: "Brendan Jurd" <direvus(at)gmail(dot)com>, <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Patch to add objetct size on "\d+" verbose output
Date: 2008-05-02 10:16:49
Message-ID: 481AEA11.9010400@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Dickson dos Santos Guedes wrote:
> On Sat, Apr 12, 2008 at 7:43 PM, Brendan Jurd <direvus(at)gmail(dot)com> wrote:
>> I was going to try this patch out, but it would not apply. Seems that
>> where the patch should have &, it has &amp; instead. Has this somehow
>> been HTML entity-ified?
>
> Hi Brendan,
>
> You are right, I don't now why this occurs. I'm sending it now
> gziped, You may test it again.

Although it would often be nice to see tables sorted by size, I don't
like having a different ordering in verbose mode, that's just confusing.

Patch committed, sans the ordering change. I also moved the Size column
before Description, I think it looks better to have the potentially long
Description column at the end. It's also consistent with the \l+ output
that way.

Thanks for the patch!

--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com


From: "Dickson dos Santos Guedes" <guediz(at)gmail(dot)com>
To: "Heikki Linnakangas" <heikki(at)enterprisedb(dot)com>
Cc: "Brendan Jurd" <direvus(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Patch to add objetct size on "\d+" verbose output
Date: 2008-05-02 18:07:08
Message-ID: f0b79c6f0805021107p56f020a3l15afaae8d7302de@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Fri, May 2, 2008 at 7:16 AM, Heikki Linnakangas
<heikki(at)enterprisedb(dot)com> wrote:
> Although it would often be nice to see tables sorted by size, I don't like
> having a different ordering in verbose mode, that's just confusing.

Yes, I agree.

> Patch committed, sans the ordering change. I also moved the Size column
> before Description, I think it looks better to have the potentially long
> Description column at the end. It's also consistent with the \l+ output that
> way.

Excelent. It is better.

> Thanks for the patch!

Thanks for your suggestions.

--
[]s
Dickson S. Guedes
-------------------------------------
Projeto Colmeia - Curitiba - PR
(41) 3254-7130 ramal: 27
http://makeall.wordpress.com/
http://planeta.postgresql.org.br/