More documentation update for GRANT ... WITH SET OPTION.
authorRobert Haas <rhaas@postgresql.org>
Mon, 16 Jan 2023 15:35:29 +0000 (10:35 -0500)
committerRobert Haas <rhaas@postgresql.org>
Mon, 16 Jan 2023 15:35:29 +0000 (10:35 -0500)
commit3cdf7502f85c9e61913e05519f88580f008b8453
tree6e77f0aa9c1cb8004572dae91f6391838d481846
parent20428d344a2964de6aaef9984fcd472f3c65d115
More documentation update for GRANT ... WITH SET OPTION.

Update the reference pages for various ALTER commands that
mentioned that you must be a member of role that will be the
new owner to instead say that you must be able to SET ROLE
to the new owner. Update ddl.sgml's generate statement on this
topic along similar lines.

Likewise, update CREATE SCHEMA and CREATE DATABASE, which
have options to specify who will own the new objects, to say
that you must be able to SET ROLE to the role that will own
them.

Finally, update the documentation for the GRANT statement
itself with some general principles about how the SET option
works and how it can be used.

Patch by me, reviewed (but not fully endorsed) by Noah Misch.

Discussion: http://postgr.es/m/CA+TgmoZk6VB3DQ83+DO5P_HP=M9PQAh1yj-KgeV30uKefVaWDg@mail.gmail.com
26 files changed:
doc/src/sgml/ddl.sgml
doc/src/sgml/ref/alter_aggregate.sgml
doc/src/sgml/ref/alter_collation.sgml
doc/src/sgml/ref/alter_conversion.sgml
doc/src/sgml/ref/alter_database.sgml
doc/src/sgml/ref/alter_domain.sgml
doc/src/sgml/ref/alter_foreign_table.sgml
doc/src/sgml/ref/alter_function.sgml
doc/src/sgml/ref/alter_large_object.sgml
doc/src/sgml/ref/alter_materialized_view.sgml
doc/src/sgml/ref/alter_opclass.sgml
doc/src/sgml/ref/alter_operator.sgml
doc/src/sgml/ref/alter_procedure.sgml
doc/src/sgml/ref/alter_publication.sgml
doc/src/sgml/ref/alter_schema.sgml
doc/src/sgml/ref/alter_sequence.sgml
doc/src/sgml/ref/alter_server.sgml
doc/src/sgml/ref/alter_statistics.sgml
doc/src/sgml/ref/alter_subscription.sgml
doc/src/sgml/ref/alter_table.sgml
doc/src/sgml/ref/alter_tablespace.sgml
doc/src/sgml/ref/alter_type.sgml
doc/src/sgml/ref/alter_view.sgml
doc/src/sgml/ref/create_database.sgml
doc/src/sgml/ref/create_schema.sgml
doc/src/sgml/ref/grant.sgml