Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit a486841

Browse files
committed
Print more information about getObjectIdentityParts() failures.
This might help us debug what's happening on some buildfarm members. In passing, reduce the message from ereport to elog --- it doesn't seem like this should be a user-facing case, so not worth translating.
1 parent 2855179 commit a486841

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/backend/catalog/objectaddress.c

+4-5
Original file line numberDiff line numberDiff line change
@@ -4035,13 +4035,12 @@ getObjectIdentityParts(const ObjectAddress *object,
40354035

40364036
/*
40374037
* If a get_object_address representation was requested, make sure we are
4038-
* providing one. We don't check for objargs, because many of the cases
4039-
* above leave it as NIL.
4038+
* providing one. We don't check objargs, because many of the cases above
4039+
* leave it as NIL.
40404040
*/
40414041
if (objname && *objname == NIL)
4042-
ereport(ERROR,
4043-
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
4044-
errmsg("requested object address for object type that cannot support it")));
4042+
elog(ERROR, "requested object address for unsupported object class %d: text result \"%s\"",
4043+
(int) getObjectClass(object), buffer.data);
40454044

40464045
return buffer.data;
40474046
}

0 commit comments

Comments
 (0)