pgsql: Add new SQL function, format(text).

Поиск
Список
Период
Сортировка
От Robert Haas
Тема pgsql: Add new SQL function, format(text).
Дата
Msg-id E1PK0hJ-0005RT-Fc@gemulon.postgresql.org
обсуждение исходный текст
Ответы Re: pgsql: Add new SQL function, format(text).  (Andres Freund <andres@anarazel.de>)
Список pgsql-committers
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.

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=750487077802861a2accd94164166747ec311fa4

Modified Files
--------------
doc/src/sgml/func.sgml             |   25 +++++
doc/src/sgml/plpgsql.sgml          |   23 ++++
src/backend/utils/adt/varlena.c    |  195 ++++++++++++++++++++++++++++++++++++
src/include/catalog/pg_proc.h      |    4 +
src/include/utils/builtins.h       |    2 +
src/test/regress/expected/text.out |  108 ++++++++++++++++++--
src/test/regress/sql/text.sql      |   32 ++++++-
7 files changed, 374 insertions(+), 15 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Further cleanup of indxpath logic related to IndexOptInfo.opfami
Следующее
От: Robert Haas
Дата:
Сообщение: pgsql: Bump catversion. Should have done this as part of format(text)