From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@postgresql.org
Subject: pgsql: Extend sortsupport for text to more opclasses.
Date: Wed, 03 Feb 2016 19:31:40 +0000
Message-ID: <E1aR39Q-0002VF-3R@gemulon.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
Extend sortsupport for text to more opclasses.
Have varlena.c expose an interface that allows the char(n), bytea, and
bpchar types to piggyback on a now-generalized SortSupport for text.
This pushes a little more knowledge of the bpchar/char(n) type into
varlena.c than might be preferred, but that seems like the approach
that creates least friction. Also speed things up for index builds
that use text_pattern_ops or varchar_pattern_ops.
This patch does quite a bit of renaming, but it seems likely to be
worth it, so as to avoid future confusion about the fact that this code
is now more generally used than the old names might have suggested.
Peter Geoghegan, reviewed by Álvaro Herrera and Andreas Karlsson,
with small tweaks by me.
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/b47b4dbf683f13e6ef09fa0d93aa6e84f3d00819
Modified Files
--------------
doc/src/sgml/datatype.sgml | 3 +-
src/backend/utils/adt/varchar.c | 55 +++++-
src/backend/utils/adt/varlena.c | 391 ++++++++++++++++++++++++++-------------
src/include/catalog/catversion.h | 2 +-
src/include/catalog/pg_amproc.h | 4 +
src/include/catalog/pg_proc.h | 8 +
src/include/utils/builtins.h | 6 +
src/include/utils/bytea.h | 1 +
8 files changed, 335 insertions(+), 135 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: rhaas@postgresql.org
Subject: Re: pgsql: Extend sortsupport for text to more opclasses.
In-Reply-To: <E1aR39Q-0002VF-3R@gemulon.postgresql.org>
References: <E1aR39Q-0002VF-3R@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox