Convert eval_const_expressions's long series of IsA tests into a switch.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: a04161f2eab55f72b3c3dba9baed0ec09e7f633f
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2011-11-28T19:21:40Z
Releases: 9.2.0
Convert eval_const_expressions's long series of IsA tests into a switch.

This function has now grown enough cases that a switch seems appropriate.
This results in a measurable speed improvement on some platforms, and
should certainly not hurt.  The code's in need of a pgindent run now,
though.

Andres Freund

Files

PathChange+/−
src/backend/optimizer/util/clauses.c modified +31 −25