8000 Make has_sequence_privilege support WITH GRANT OPTION · koderP/postgres@db714c6 · GitHub
[go: up one dir, main page]

Skip to content

Commit db714c6

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

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
@@ -2243,8 +2243,11 @@ convert_sequence_priv_string(text *priv_type_text)
22432243
{
22442244
static const priv_map sequence_priv_map[] = {
22452245
{"USAGE", ACL_USAGE},
2246+
{"USAGE WITH GRANT OPTION", ACL_GRANT_OPTION_FOR(ACL_USAGE)},
22462247
{"SELECT", ACL_SELECT},
2248+
{"SELECT WITH GRANT OPTION", ACL_GRANT_OPTION_FOR(ACL_SELECT)},
22472249
{"UPDATE", ACL_UPDATE},
2250+
{"UPDATE WITH GRANT OPTION", ACL_GRANT_OPTION_FOR(ACL_UPDATE)},
22482251
{NULL, 0}
22492252
};
22502253

0 commit comments

Comments
 (0)
0