Re: pgsql: Add new SQL function, format(text). - Mailing list pgsql-committers

From Robert Haas
Subject Re: pgsql: Add new SQL function, format(text).
Date
Msg-id AANLkTikxYdPFvMtr9cBFvJJRNV7-jJF=wc5xu216U7M0@mail.gmail.com
Whole thread Raw
In response to Re: pgsql: Add new SQL function, format(text).  (Andres Freund <andres@anarazel.de>)
List pgsql-committers
On Sun, Nov 21, 2010 at 5:22 PM, Andres Freund <andres@anarazel.de> wrote:
> On Sunday 21 November 2010 04:34:37 Robert Haas wrote:
>> Add new SQL function, format(text).
>>
>> Currently, three conversion format specifiers are supported: %s for a
>> string, %L for an SQL literal, and %I for an SQL identifier.  The latter
>> two are deliberately designed not to overlap with what sprintf() already
>> supports, in case we want to add more of sprintf()'s functionality here
>> later.
>>
>> Patch by Pavel Stehule, heavily revised by me.  Reviewed by Jeff Janes
>> and, in earlier versions, by Itagaki Takahiro and Tom Lane.
> A tiny question: Why does that commit remove quote_ident() test cases?

Because my git-fu is distinctly second rate.  Will fix.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

pgsql-committers by date:

Previous
From: Andres Freund
Date:
Subject: Re: pgsql: Add new SQL function, format(text).
Next
From: Robert Haas
Date:
Subject: pgsql: Put back accidentally-deleted quote_literal() regression tests.