pg.ddx.io pgsql-docs@postgresql.org mailing list archive
help / color / mirror / Atom feed[`] Paragraph doesn't match example in
2+ messages / 2 participants
[nested] [flat]
* [`] Paragraph doesn't match example in
@ 2022-08-28 21:33 PG Doc comments form <noreply@postgresql.org>
2022-08-30 21:12 ` Re: [`] Paragraph doesn't match example in Bruce Momjian <bruce@momjian.us>
0 siblings, 1 reply; 2+ messages in thread
From: PG Doc comments form @ 2022-08-28 21:33 UTC (permalink / raw)
To: pgsql-docs@lists.postgresql.org; +Cc: org.postgresql@a12l.xyz
The following documentation comment has been logged on the website:
Page: https://www.postgresql.org/docs/14/role-membership.html
Description:
In § 22.3 there's a paragraph stating
> Immediately after connecting as role joe, a database session will have use
of privileges granted directly to joe plus any privileges granted to admin,
because joe “inherits” admin's privileges.
But in the code block directly presiding that paragraph contain the command
`CREATE ROLE admin NOINHERIT;`.
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: [`] Paragraph doesn't match example in
2022-08-28 21:33 [`] Paragraph doesn't match example in PG Doc comments form <noreply@postgresql.org>
@ 2022-08-30 21:12 ` Bruce Momjian <bruce@momjian.us>
0 siblings, 0 replies; 2+ messages in thread
From: Bruce Momjian @ 2022-08-30 21:12 UTC (permalink / raw)
To: org.postgresql@a12l.xyz; pgsql-docs@lists.postgresql.org
On Sun, Aug 28, 2022 at 09:33:40PM +0000, PG Doc comments form wrote:
> The following documentation comment has been logged on the website:
>
> Page: https://www.postgresql.org/docs/14/role-membership.html
> Description:
>
> In § 22.3 there's a paragraph stating
>
> > Immediately after connecting as role joe, a database session will have use
> of privileges granted directly to joe plus any privileges granted to admin,
> because joe “inherits” admin's privileges.
>
> But in the code block directly presiding that paragraph contain the command
> `CREATE ROLE admin NOINHERIT;`.
Uh, the text says:
NOINHERIT
These clauses determine whether a role “inherits” the
privileges of roles it is a member of. A role with the INHERIT
attribute can automatically use whatever database privileges
have been granted to all roles it is directly or indirectly
a member of. Without INHERIT, membership in another role
only grants the ability to SET ROLE to that other role; the
privileges of the other role are only available after having
done so. If not specified, INHERIT is the default.
The controls whether the role being created inherits anything, not how
role members behave.
--
Bruce Momjian <bruce@momjian.us> https://momjian.us
EDB https://enterprisedb.com
Indecision is a decision. Inaction is an action. Mark Batterson
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2022-08-30 21:12 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2022-08-28 21:33 [`] Paragraph doesn't match example in PG Doc comments form <noreply@postgresql.org>
2022-08-30 21:12 ` Bruce Momjian <bruce@momjian.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox