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

Commit752714d

Browse files
committed
Make has_sequence_privilege support WITH GRANT OPTION
The various has_*_privilege() functions all support an optionalWITH GRANT OPTION added to the supported privilege types to testwhether the privilege is held with grant option. That is, all excepthas_sequence_privilege() variations. Fix that.Back-patch to all supported branches.Discussion:https://postgr.es/m/005147f6-8280-42e9-5a03-dd2c1e4397ef@joeconway.com
1 parent6d4ae6a commit752714d

File tree

1 file changed

+3
-0
lines changed
  • src/backend/utils/adt

1 file changed

+3
-0
lines changed

‎src/backend/utils/adt/acl.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2242,8 +2242,11 @@ convert_sequence_priv_string(text *priv_type_text)
22422242
{
22432243
staticconstpriv_mapsequence_priv_map[]= {
22442244
{"USAGE",ACL_USAGE},
2245+
{"USAGE WITH GRANT OPTION",ACL_GRANT_OPTION_FOR(ACL_USAGE)},
22452246
{"SELECT",ACL_SELECT},
2247+
{"SELECT WITH GRANT OPTION",ACL_GRANT_OPTION_FOR(ACL_SELECT)},
22462248
{"UPDATE",ACL_UPDATE},
2249+
{"UPDATE WITH GRANT OPTION",ACL_GRANT_OPTION_FOR(ACL_UPDATE)},
22472250
{NULL,0}
22482251
};
22492252

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp