Re: proposal - psql - show longest tables

From: David Fetter <david(at)fetter(dot)org>
To: Dimitri Fontaine <dimitri(at)2ndQuadrant(dot)fr>
Cc: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, Merlin Moncure <mmoncure(at)gmail(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: proposal - psql - show longest tables
Date: 2013-07-22 22:55:33
Message-ID: 20130722225533.GB18100@fetter.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Jul 22, 2013 at 02:44:59PM -0700, Dimitri Fontaine wrote:
> Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> writes:
> >> SELECT * from top5();
>
> $ TABLE top5; -- add a view on top of the SRF
>
> > you cannot use parameters - then I have to have prepared files like
> > top10, top20, ... what is not too friendly
>
> The SRF could be using custom GUCs so that you can parametrize it, or
> just even classic parameters…
>
> $ TABLE top(5); -- needs a patch to accept SRF here…

Andrew Gierth will probably be posting a design & patch for something
similar soon :)

Cheers,
David.
--
David Fetter <david(at)fetter(dot)org> http://fetter.org/
Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter
Skype: davidfetter XMPP: david(dot)fetter(at)gmail(dot)com
iCal: webcal://www.tripit.com/feed/ical/people/david74/tripit.ics

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message David Fetter 2013-07-22 23:03:56 Re: proposal - psql - show longest tables
Previous Message Robert Haas 2013-07-22 22:11:02 Re: [COMMITTERS] pgsql: Add support for REFRESH MATERIALIZED VIEW CONCURRENTLY.