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

From Pavel Stehule
Subject proposal or just idea for psql - show first N rows from relation backslash statement
Date
Msg-id CAFj8pRCeE5TzW-2WcCHpJtf1CbPQ4E_PauLW1x9QS7MWgxn-Pg@mail.gmail.com
Whole thread Raw
Responses Re: proposal or just idea for psql - show first N rows from relation backslash statement
Re: proposal or just idea for psql - show first N rows from relation backslash statement
List pgsql-hackers
Hello

probably one from my top ten SQL statement will be

SELECT * FROM some_relation LIMIT 10

what do you thinking about creating special statement for this purpose?

possible syntax

-- ViewTable
\vt table_name [rows]

or

\sample table_name [rows]

a implementation with autocomplete is terrible simple

Regards

Pavel



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: 9.2.3 crashes during archive recovery
Next
From: Kevin Grittner
Date:
Subject: Re: Alias hstore's ? to ~ so that it works with JDBC