Re: proposal - psql - show longest tables - Mailing list pgsql-hackers

From David Fetter
Subject Re: proposal - psql - show longest tables
Date
Msg-id 20130722225533.GB18100@fetter.org
Whole thread Raw
In response to Re: proposal - psql - show longest tables  (Dimitri Fontaine <dimitri@2ndQuadrant.fr>)
Responses Re: proposal - psql - show longest tables
List pgsql-hackers
On Mon, Jul 22, 2013 at 02:44:59PM -0700, Dimitri Fontaine wrote:
> Pavel Stehule <pavel.stehule@gmail.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@fetter.org> http://fetter.org/
Phone: +1 415 235 3778  AIM: dfetter666  Yahoo!: dfetter
Skype: davidfetter      XMPP: david.fetter@gmail.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



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: [COMMITTERS] pgsql: Add support for REFRESH MATERIALIZED VIEW CONCURRENTLY.
Next
From: David Fetter
Date:
Subject: Re: proposal - psql - show longest tables