Re: Patch by request at pgcon

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Greg Stark <stark(at)mit(dot)edu>
Cc: "<pgsql-hackers(at)postgresql(dot)org>" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Patch by request at pgcon
Date: 2011-05-19 16:36:20
Message-ID: 1305822919-sup-3632@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
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(at)commandprompt(dot)com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2011-05-19 16:57:21 Re: LOCK DATABASE
Previous Message Tom Lane 2011-05-19 16:19:32 Re: timezone GUC