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

Commite96b7c6

Browse files
committed
sepgsql: Improve error message when unsupported object type is labeled.
KaiGai Kohei, reviewed by Álvaro Herrera and myself
1 parente529cd4 commite96b7c6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎contrib/sepgsql/label.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,10 @@ sepgsql_object_relabel(const ObjectAddress *object, const char *seclabel)
532532
break;
533533

534534
default:
535-
elog(ERROR,"unsupported object type: %u",object->classId);
535+
ereport(ERROR,
536+
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
537+
errmsg("sepgsql provider does not support labels on %s",
538+
getObjectTypeDescription(object))));
536539
break;
537540
}
538541
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp