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

From Bruce Momjian
Subject Re: Re: [COMMITTERS] pgsql: This makes all the \dX commands (most importantly to most: \df)
Date
Msg-id 200901070151.n071p5205489@momjian.us
Whole thread Raw
In response to Re: Re: [COMMITTERS] pgsql: This makes all the \dX commands (most importantly to most: \df)  (Alvaro Herrera <alvherre@commandprompt.com>)
Responses Re: Re: [COMMITTERS] pgsql: This makes all the \dX commands (most importantly to most: \df)  (Alvaro Herrera <alvherre@commandprompt.com>)
List pgsql-hackers
Alvaro Herrera wrote:
> Bruce Momjian wrote:
> > Alvaro Herrera wrote:
> > > Bruce Momjian wrote:
> > > 
> > > >     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
> > > 
> > > If we do this, is there a way to abstract the translation marker _()
> > > from the alignment whitespace?
> > 
> > So they don't have to re-translate?
> 
> No, so that the translators don't have to worry about getting alignment
> right; and also so that they don't have to translate \\d[S+] etc which
> obviously doesn't need any translation.

I am thinking we can do:
fprintf(output, "  \\da[S]   %.9s    %s\n", _("[PATTERN]"),     _("list aggregate"));

What do you think?

--  Bruce Momjian  <bruce@momjian.us>        http://momjian.us EnterpriseDB
http://enterprisedb.com
 + If your life is a hard drive, Christ can be your backup. +


pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Re: [COMMITTERS] pgsql: This makes all the \dX commands (most importantly to most: \df)
Next
From: ITAGAKI Takahiro
Date:
Subject: Re: SQL/MED dummy vs postgresql wrapper