Re: \d for views display query

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: James Sasitorn <james(at)sasitorn(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: \d for views display query
Date: 2011-07-30 15:07:14
Message-ID: 20801.1312038434@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

James Sasitorn <james(at)sasitorn(dot)com> writes:
> The default behavior for \d (at least in my installations) changed when used against views.
> if I do
> #\d myview

> It shows the view structure only. Older versions of psql used to also show what the view represented (the select statements and supporting tables it corresponded to).

Yes. Use \d+ to see the definition too in recent versions of psql.

regards, tom lane

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Soviet 2011-07-31 14:02:21 PostgreSQL on Amazon EC2/EBS
Previous Message James Sasitorn 2011-07-30 07:09:02 \d for views display query