Content-Length: 273739 | pFad | http://github.com/postgrespro/postgres/commit/a486841eb11517e4a344fdebaf370f425a171c85

44 Print more information about getObjectIdentityParts() failures. · postgrespro/postgres@a486841 · GitHub
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

Lines changed: 4 additions & 5 deletions
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/a486841eb11517e4a344fdebaf370f425a171c85

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy