Re: \d+ for long view definitions? - Mailing list pgsql-hackers

From David Fetter
Subject Re: \d+ for long view definitions?
Date
Msg-id 20090901190109.GV20482@fetter.org
Whole thread Raw
In response to Re: \d+ for long view definitions?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: \d+ for long view definitions?
List pgsql-hackers
On Tue, Sep 01, 2009 at 02:29:12PM -0400, Tom Lane wrote:
> Robert Haas <robertmhaas@gmail.com> writes:
> > I think we should always or never show the view definition, not
> > sometimes.
> 
> Yeah.  I can live with \d not showing it and \d+ showing it --- as
> Peter already mentioned, that would be consistent with \df behavior.
> Making it depend on the length is just weird.

As I see it, there are two independent issues here:

* "Smart" display based on number of columns in the query and the psql window
* Whether to display the view definition.

I'm thinking on the second, \d should not display the definition, and
\d+ should.

On the first...could we go to \x-type display if the columns will
overflow the terminal?

Cheers,
David.
-- 
David Fetter <david@fetter.org> http://fetter.org/
Phone: +1 415 235 3778  AIM: dfetter666  Yahoo!: dfetter
Skype: davidfetter      XMPP: david.fetter@gmail.com

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate


pgsql-hackers by date:

Previous
From: Josh Berkus
Date:
Subject: Adding \ev view editor?
Next
From: David Fetter
Date:
Subject: Re: Adding \ev view editor?