pgsql: Clean up foreign-key caching code in planner.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Clean up foreign-key caching code in planner.
Date: 2016-04-11 03:47:40
Message-ID: E1apSpA-00005o-7q@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/5306df2831ab012d8008691f833457bc299962aa

Modified Files
--------------
src/backend/optimizer/util/plancat.c | 32 ++++++++++++++++----------------
1 file changed, 16 insertions(+), 16 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2016-04-11 04:00:15 pgsql: pg_dump: add missing "destroyPQExpBuffer(query)" in dumpForeignS
Previous Message Tom Lane 2016-04-11 03:16:24 pgsql: Fix access-to-already-freed-memory issue in plpython's error han