Re: proposal or just idea for psql - show first N rows from relation backslash statement - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: proposal or just idea for psql - show first N rows from relation backslash statement
Date
Msg-id 20130214153442.GD4747@alvh.no-ip.org
Whole thread Raw
In response to Re: proposal or just idea for psql - show first N rows from relation backslash statement  (Pavel Stehule <pavel.stehule@gmail.com>)
List pgsql-hackers
Pavel Stehule escribió:
> 2013/2/14 Stephen Frost <sfrost@snowman.net>:
> > * Merlin Moncure (mmoncure@gmail.com) wrote:
> >> CALL top10('foo');
> >>
> >> which seems more general and just as terse.  So I think implementing
> >> call syntax is probably topping my 'wanted feature' list.
> >
> > We have that, it's called 'SELECT' and it's only 2 more characters..
>
> it is not true
>
> SELECT * FROM foo LIMIT 10 -- 26 chars
>
> CALL top('foo') -- 15 chars
>
> \vt foo -- 7 chars

table foo limit 10;    -- can be ta<tab>, saves 4 keystrokes

Needs autocompletion for "limit", then it's 8 keystrokes plus table
name, no extraneous features needed.

--
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services



pgsql-hackers by date:

Previous
From: Stephen Frost
Date:
Subject: Re: proposal or just idea for psql - show first N rows from relation backslash statement
Next
From: Jehan-Guillaume de Rorthais
Date:
Subject: Unarchived WALs deleted after crash