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

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: Stephen Frost <sfrost(at)snowman(dot)net>
Cc: Merlin Moncure <mmoncure(at)gmail(dot)com>, fabriziomello(at)gmail(dot)com, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: proposal or just idea for psql - show first N rows from relation backslash statement
Date: 2013-02-14 14:37:10
Message-ID: CAFj8pRBPCdso6Q80B8_AHNGWKBpwpDNiu3exCVgsPvxJc6yEKg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

2013/2/14 Stephen Frost <sfrost(at)snowman(dot)net>:
> * Merlin Moncure (mmoncure(at)gmail(dot)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

Regards

Pavel

>
> Thanks,
>
> Stephen

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Stephen Frost 2013-02-14 14:41:39 Re: proposal or just idea for psql - show first N rows from relation backslash statement
Previous Message Andres Freund 2013-02-14 14:36:55 Re: proposal or just idea for psql - show first N rows from relation backslash statement