psql: Add setting to make '+' on \d implicit

From: Terry Brown <terry_n_brown(at)yahoo(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: psql: Add setting to make '+' on \d implicit
Date: 2010-04-23 15:58:40
Message-ID: 20100423105840.49b08999@nrri.umn.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I asked on IRC if there was any way to make \d behave like \d+ by default, and davidfetter said no but suggest it here.

endpoint_david pointed out you could use \d- to get the old behavior if you wanted to temporarily negate the setting.

So the proposal would be:

\d+ does as it has always done, no change
\d- (new) always behaves like 'old' \d
\d acts as 'old' \d or as \d+, depending on the setting of 'verbose_describe', set via \pset.

Default setting of verbose_describe would presumably yield 'old' behavior.

Motivation is that I like to see comments when they exist. Probably useful for other reasons too.

Cheers -Terry

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2010-04-23 16:06:50 Re: Issue with ReRaise in PG
Previous Message Tom Lane 2010-04-23 15:57:24 Re: Issue with ReRaise in PG