pgsql: Expose quote_literal_cstr() from core.

Поиск
Список
Период
Сортировка
От Robert Haas
Тема pgsql: Expose quote_literal_cstr() from core.
Дата
Msg-id E1PJp2e-0003Q2-Hy@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Expose quote_literal_cstr() from core.

This eliminates the need for inefficient implementions of this
functionality in both contrib/dblink and contrib/tablefunc, so remove
them.  The upcoming patch implementing an in-core format() function
will also require this functionality.

In passing, add some regression tests.

Branch
------
master

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

Modified Files
--------------
contrib/dblink/dblink.c            |   20 ---------
contrib/tablefunc/tablefunc.c      |   20 ---------
src/backend/utils/adt/quote.c      |   75 +++++++++++++++++++++++++----------
src/include/utils/builtins.h       |    1 +
src/test/regress/expected/text.out |   18 +++++++++
src/test/regress/sql/text.sql      |    3 +
6 files changed, 75 insertions(+), 62 deletions(-)


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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: pgsql: Speed up conversion of signed integers to C strings.
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Assorted further cleanup for integer-conversion patch.