Commit 9a11df14 authored by Tom Lane's avatar Tom Lane

Remove duplicate assignment in new pg_get_object_address() function.

Noted by Coverity.
parent 6630420f
...@@ -1416,7 +1416,6 @@ pg_get_object_address(PG_FUNCTION_ARGS) ...@@ -1416,7 +1416,6 @@ pg_get_object_address(PG_FUNCTION_ARGS)
Relation relation; Relation relation;
/* Decode object type, raise error if unknown */ /* Decode object type, raise error if unknown */
ttype = TextDatumGetCString(PG_GETARG_TEXT_P(0));
itype = read_objtype_from_string(ttype); itype = read_objtype_from_string(ttype);
if (itype < 0) if (itype < 0)
ereport(ERROR, ereport(ERROR,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment