Re: Re: [COMMITTERS] pgsql: This makes all the \dX commands (most importantly to most: \df)

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Re: [COMMITTERS] pgsql: This makes all the \dX commands (most importantly to most: \df)
Date: 2009-01-06 23:08:34
Message-ID: 200901062308.n06N8Ya04791@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

Bruce Momjian wrote:
> Bruce Momjian wrote:
> > Tom Lane wrote:
> > > momjian(at)postgresql(dot)org (Bruce Momjian) writes:
> > > > This makes all the \dX commands (most importantly to most: \df) work
> > > > like \dt does, in that it requires a \dXS to see system items.
> > >
> > > The lack of any documentation change is glaring.
> >
> > Oh, it sure does. I will work on that.
>
> OK, documentation added with the attached patch, applied. The
> documentation needed quite a bit of cleanup, independent of this patch,
> which I did.
>
> I also found a bug that \do didn't work because the AND system table
> check was being added to the LEFT JOIN and not to the WHERE clause
> (trigger display was also a problem).

Let me also say that that \d* display is ready to fall over from its own
weight:

Informational
Modifiers: S = show system objects + = Additional detail
\l[+] list all databases
\d[S+] list tables, views, and sequences
\d[S+] NAME describe table, view, sequence, or index
\da[S] [PATTERN] list aggregate functions
\db[+] [PATTERN] list tablespaces
\dc[S] [PATTERN] list conversions
\dC [PATTERN] list casts
\dd [PATTERN] show comment for object
\dd[S] [PATTERN] list comments on objects
\dD[S] [PATTERN] list domains
\des[+] [PATTERN] list foreign servers
\deu[+] [PATTERN] list user mappings
\dew[+] [PATTERN] list foreign-data wrappers
\df[S+] [PATTERN] list functions
\dF[+] [PATTERN] list text search configurations
\dFd[+] [PATTERN] list text search dictionaries
\dFp[+] [PATTERN] list text search parsers
\dFt[+] [PATTERN] list text search templates
\dg [PATTERN] list roles (groups)
\di[S+] [PATTERN] list indexes
\dl list large objects, same as \lo_list
\dn[+] [PATTERN] list schemas
\do[S] [PATTERN] list operators
\dp [PATTERN] list table, view, and sequence access privileges
\z [PATTERN] same as \dp
\ds[S+] [PATTERN] list sequences
\dt[S+] [PATTERN] list tables
\dT[S+] [PATTERN] list data types
\du [PATTERN] list roles (users)
\dv[S+] [PATTERN] list views

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2009-01-06 23:09:56 pgsql: Improve \z psql \? help display.
Previous Message Bruce Momjian 2009-01-06 23:01:57 pgsql: Add documentation for new \d*S* patch, and clean up some of the

Browse pgsql-hackers by date

  From Date Subject
Next Message Stephen R. van den Berg 2009-01-06 23:11:34 Runaway backend at 100% CPU PostgreSQL v8.3.5
Previous Message Bruce Momjian 2009-01-06 23:01:22 Re: [COMMITTERS] pgsql: This makes all the \dX commands (most importantly to most: \df)