OSDN Git Service

Expose quote_literal_cstr() from core.
authorRobert Haas <rhaas@postgresql.org>
Sat, 20 Nov 2010 15:04:48 +0000 (10:04 -0500)
committerRobert Haas <rhaas@postgresql.org>
Sat, 20 Nov 2010 15:04:48 +0000 (10:04 -0500)
commit4343c0e546b216ab38a3397a4f0f7476d557b352
tree5a5676ac12ebe9f480851e2bb963ac1418c86921
parente8bf683fbee935181e207d7171630194ed01f6a1
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.
contrib/dblink/dblink.c
contrib/tablefunc/tablefunc.c
src/backend/utils/adt/quote.c
src/include/utils/builtins.h
src/test/regress/expected/text.out
src/test/regress/sql/text.sql