OSDN Git Service

Avoid an unnecessary syscache lookup in parse_coerce.c.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 8 Apr 2011 20:11:04 +0000 (16:11 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 8 Apr 2011 20:11:41 +0000 (16:11 -0400)
commitc5ff3ff49229e8fb7da0e46b463bfc9b12219078
tree30704db0fc4f3059ae87f6ea6bfe0a95caf1ae8b
parentcba9cd419270a9b7f442877e21685ac0de5730b3
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.)
src/backend/parser/parse_coerce.c
src/backend/parser/parse_type.c
src/include/parser/parse_type.h