pgsql: Avoid an unnecessary syscache lookup in parse_coerce.c. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Avoid an unnecessary syscache lookup in parse_coerce.c.
Date
Msg-id E1Q8I2W-0004Ug-S2@gemulon.postgresql.org
Whole thread Raw
List 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(-)


pgsql-committers by date:

Previous
From: Robert Haas
Date:
Subject: pgsql: Make psql use pg_table_size instead of pg_relation_size on 9.0+
Next
From: Tom Lane
Date:
Subject: pgsql: Tweak collation setup for GIN index comparison functions.