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

Commitd38e706

Browse files
committed
Fix function comment for dumpACL()
The comment for dumpACL() got neglected when initacls and initracls wereadded and the discussion of what 'racls' is wasn't very clear either.Per complaint from Tom.
1 parentbc37d24 commitd38e706

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

‎src/bin/pg_dump/pg_dump.c

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14759,10 +14759,20 @@ dumpDefaultACL(Archive *fout, DefaultACLInfo *daclinfo)
1475914759
* 'tag' is the tag for the archive entry (typ. unquoted name of object).
1476014760
* 'nspname' is the namespace the object is in (NULL if none).
1476114761
* 'owner' is the owner, NULL if there is no owner (for languages).
14762-
* 'acls' is the string read out of the fooacl system catalog field;
14763-
*it will be parsed here.
14764-
* 'racls' contains any initial ACLs that the object had which have now been
14765-
*revoked by the user, it will also be parsed here.
14762+
* 'acls' contains the ACL string of the object from the appropriate system
14763+
* catalog field; it will be passed to buildACLCommands for building the
14764+
* appropriate GRANT commands.
14765+
* 'racls' contains the ACL string of any initial-but-now-revoked ACLs of the
14766+
* object; it will be passed to buildACLCommands for building the
14767+
* appropriate REVOKE commands.
14768+
* 'initacls' In binary-upgrade mode, ACL string of the object's initial
14769+
* privileges, to be recorded into pg_init_privs
14770+
* 'initracls' In binary-upgrade mode, ACL string of the object's
14771+
* revoked-from-default privileges, to be recorded into pg_init_privs
14772+
*
14773+
* NB: initacls/initracls are needed because extensions can set privileges on
14774+
* an object during the extension's script file and we record those into
14775+
* pg_init_privs as that object's initial privileges.
1476614776
*----------
1476714777
*/
1476814778
static void

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp