Re: RfD: more powerful "any" types - Mailing list pgsql-hackers

From Tom Lane
Subject Re: RfD: more powerful "any" types
Date
Msg-id 4674.1252603006@sss.pgh.pa.us
Whole thread Raw
In response to Re: RfD: more powerful "any" types  (Alvaro Herrera <alvherre@commandprompt.com>)
Responses Re: RfD: more powerful "any" types
Re: RfD: more powerful "any" types
List pgsql-hackers
Alvaro Herrera <alvherre@commandprompt.com> writes:
> alvherre=# select text_format('% was % at % and said % % times', 'Pavel'::text, 'here'::unknown, now(),
row('a','b','c'),'{42}'::int[]);
 
>                                  text_format                                 
> -----------------------------------------------------------------------------
>  Pavel was here at 2009-09-10 13:12:09.054653-04 and said (a,b,c) {42} times
> (1 fila)

Is that what's being proposed?  That pretty much sucks --- it's just
another way of concatenating some strings.  I thought the idea was to
provide the same power as sprintf, eg field width controls, numeric
formatting options, etc.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: RfD: more powerful "any" types
Next
From: "David E. Wheeler"
Date:
Subject: Re: RfD: more powerful "any" types