Re: Patch by request at pgcon

Alvaro Herrera <alvherre@commandprompt.com>

From: Alvaro Herrera <alvherre@commandprompt.com>
To: Greg Stark <stark@mit.edu>
Cc: "<pgsql-hackers@postgresql.org>" <pgsql-hackers@postgresql.org>
Date: 2011-05-19T16:36:20Z
Lists: pgsql-hackers
Excerpts from Greg Stark's message of jue may 19 12:11:29 -0400 2011:
> A user at Pgcon made a pretty convincing case that it would sometimes
> be handy to be able to see a list of columns in alphabetical order in
> psql's \dt output. This is especially true when there are a very large
> number of columns and you're looking for a specific column with name
> matching some pattern in your head. Whie you could use your pager's
> search feature, people are also quite accustomed to visually searching
> for strings in sorted lists so that's a natural solution.
> 
> Adding such a feature would be pretty trivial, attached is a patch.

Interesting, but not so trivial I think -- I mean if you're doing this I
think you should add a column with the nominal position of the column in
the table, so that it enables you to find it quickly in the other sort
order.

-- 
Álvaro Herrera <alvherre@commandprompt.com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support