pgsql: Make object address handling more robust

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Make object address handling more robust
Date: 2019-02-20 14:27:15
Message-ID: E1gwSqB-0000rW-AX@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Make object address handling more robust

pg_identify_object_as_address crashes when passed certain tuples from
inconsistent system catalogs. Make it more defensive.

Author: Álvaro Herrera
Reviewed-by: Michaël Paquier
Discussion: https://postgr.es/m/20190218202743.GA12392@alvherre.pgsql

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/ddad002dea73cf2ad08b0916d4d9eb84fc18edad

Modified Files
--------------
src/backend/catalog/objectaddress.c | 21 +++++++++++++++++----
1 file changed, 17 insertions(+), 4 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2019-02-20 18:37:04 pgsql: Fix incorrect strictness test for ArrayCoerceExpr expressions.
Previous Message Amit Kapila 2019-02-20 12:15:08 pgsql: Doc: Update the documentation for FSM behavior for small tables.