Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita486841

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 seemlike this should be a user-facing case, so not worth translating.
1 parent2855179 commita486841

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 checkforobjargs, because many of the cases
4039-
*aboveleave 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
returnbuffer.data;
40474046
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp