Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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(-)

pgsql-committers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group