pgsql: Tweak collation setup for GIN index comparison functions.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Tweak collation setup for GIN index comparison functions.
Date: 2011-04-08 20:48:47
Message-ID: E1Q8Ibn-0004yV-MN@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Tweak collation setup for GIN index comparison functions.

Honor index column's collation spec if there is one, don't go to the
expense of calling get_typcollation when we can reasonably assume that
all GIN storage types will use default collation, and be sure to set
a collation for the comparePartialFn too.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/1766a5b63a950a667ed39c25256156bf366eb43c

Modified Files
--------------
src/backend/access/gin/ginutil.c | 26 +++++++++++++++++++++++---
1 files changed, 23 insertions(+), 3 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2011-04-08 20:52:55 pgsql: Truncate the predicate lock SLRU to empty, instead of almost emp
Previous Message Tom Lane 2011-04-08 20:12:20 pgsql: Avoid an unnecessary syscache lookup in parse_coerce.c.