pgsql: Expose quote_literal_cstr() from core.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Expose quote_literal_cstr() from core.
Date: 2010-11-20 15:07:52
Message-ID: E1PJp2e-0003Q2-Hy@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2010-11-20 17:09:55 pgsql: Assorted further cleanup for integer-conversion patch.
Previous Message Andrew Dunstan 2010-11-20 14:30:22 Re: pgsql: Speed up conversion of signed integers to C strings.