Re: psql with "Function Type" in \df

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov>, David Fetter <david(at)fetter(dot)org>, PG Hackers <pgsql-hackers(at)postgresql(dot)org>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Re: psql with "Function Type" in \df
Date: 2009-04-21 17:26:33
Message-ID: 200904211726.n3LHQXK17996@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Alvaro Herrera wrote:
> Kevin Grittner wrote:
> > Bruce Momjian <bruce(at)momjian(dot)us> wrote:
> >
> > > \df[S+] [PATTERN] list functions
> > > \df[antwS+] [PATTERN] list only agg/normal/trigger/window functions
> >
> > Shouldn't that second line have some curly braces? Like maybe:
> >
> > \df{antw}[S+] [PATTERN] list only agg/normal/trigger/window functions
> >
> > Technically, it should probably be even more verbose, but this might
> > be adequate.
>
> I suggested this to Bruce over IM:
>
> \df[antw][S+] list [only agg/normal/trigger/window] functions
>
> (one line only, removing the second redundant line). This seems
> clea[nr]er to me. Bruce says it would confuse users. But really, if
> you can understand the [S+] stuff you should be able to get the [antw]
> stuff too, right?

I merged the entries into one line:

\df[antwS+] [PATTERN] list (only agg/normal/trigger/window) functions

I didn't feel I had room to do [][] like Alvaro suggested. I also went
with parntheses in the description. Are brackets better there?

--
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. +

Attachment Content-Type Size
/rtmp/diff text/x-diff 2.4 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2009-04-21 17:28:04 Re: psql with "Function Type" in \df
Previous Message Robert Haas 2009-04-21 17:22:40 Re: Automating Partitions in PostgreSQL - Query on syntax