OSDN Git Service

Plug hole in dike: planner would coredump if query_planner
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 12 Jun 1999 19:27:41 +0000 (19:27 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 12 Jun 1999 19:27:41 +0000 (19:27 +0000)
commitacf242da971bdb2b47c5e23196b63ed079420b29
tree64d81e1703bba73f214a7027b013088f3e56a2ff
parent1918a1d1911a7e8bd6bd6c835bf127b4da741f7b
Plug hole in dike: planner would coredump if query_planner
returned NULL, which it will do in some cases where an elog(ERROR) would
probably be more appropriate.  For the moment, generate a not-very-
informative error message rather than proceeding to certain coredump.
Probably ought to think about making query_planner elog instead of
returning NULL, but this is at least a safe change for now.
src/backend/optimizer/plan/planner.c