pgsql: Avoid an unnecessary syscache lookup in parse_coerce.c.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Avoid an unnecessary syscache lookup in parse_coerce.c.
Date: 2011-04-08 20:12:20
Message-ID: E1Q8I2W-0004Ug-S2@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Avoid an unnecessary syscache lookup in parse_coerce.c.

All the other fields of the constant are being extracted from the syscache
entry we already have, so handle collation similarly. (There don't seem
to be any other uses for the new function at the moment.)

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/c5ff3ff49229e8fb7da0e46b463bfc9b12219078

Modified Files
--------------
src/backend/parser/parse_coerce.c | 2 +-
src/backend/parser/parse_type.c | 16 +++++++++++++---
src/include/parser/parse_type.h | 1 +
3 files changed, 15 insertions(+), 4 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2011-04-08 20:48:47 pgsql: Tweak collation setup for GIN index comparison functions.
Previous Message Robert Haas 2011-04-08 19:55:22 pgsql: Make psql use pg_table_size instead of pg_relation_size on 9.0+