]> granicus.if.org Git - postgresql/commit
Clean up foreign-key caching code in planner.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 11 Apr 2016 03:47:30 +0000 (23:47 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 11 Apr 2016 03:47:30 +0000 (23:47 -0400)
commit5306df2831ab012d8008691f833457bc299962aa
tree412093c6feb6fc85b3c6680c17404bc7af3d14d7
parent7e3bb080387f4143cdc908bf97daf9a8abdc445f
Clean up foreign-key caching code in planner.

Coverity complained that the code added by 015e88942aa50f0d lacked an
error check for SearchSysCache1 failures, which it should have.  But
the code was pretty duff in other ways too, including failure to think
about whether it could really cope with arrays of different lengths.
src/backend/optimizer/util/plancat.c