Re: string function - "format" function proposal - Mailing list pgsql-hackers

From Itagaki Takahiro
Subject Re: string function - "format" function proposal
Date
Msg-id AANLkTinkzwQRnfZGNEWRdGM3AMHbDGCThamBVucNMdZr@mail.gmail.com
Whole thread Raw
In response to Re: string function - "format" function proposal  (Pavel Stehule <pavel.stehule@gmail.com>)
Responses Re: string function - "format" function proposal
Re: string function - "format" function proposal
List pgsql-hackers
On Fri, Oct 15, 2010 at 12:59 PM, Pavel Stehule <pavel.stehule@gmail.com> wrote:
> then maybe %ls or %is - like "literal string" or "ident string".

Yeah, good idea!

> I don't think so merging sprintf and format can be good. Sprintf is
> too complex - so long years users don't know specification well and
> creating some like sprintf function can be messy for users. I like to
> see accurate sprintf function in contrib - and some else in core.

I agree that full-spec sprintf is too complex, but precision and
zero-full for numeric types are commonly used. I think someone
will ask us "Why don't have numeric formats though we have %s?".

-- 
Itagaki Takahiro


pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: string function - "format" function proposal
Next
From: David Fetter
Date:
Subject: Re: [GENERAL] pg_filedump binary for CentOS