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

From Tom Lane
Subject pgsql: Clean up foreign-key caching code in planner.
Date
Msg-id E1apSpA-00005o-7q@gemulon.postgresql.org
Whole thread Raw
List 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(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Fix access-to-already-freed-memory issue in plpython's error han
Next
From: Tom Lane
Date:
Subject: pgsql: pg_dump: add missing "destroyPQExpBuffer(query)" in dumpForeignS