postgresql/src/backend/catalog
Peter Eisentraut 6aaaa76bb4 Allow GRANTED BY clause in normal GRANT and REVOKE statements
The SQL standard allows a GRANTED BY clause on GRANT and
REVOKE (privilege) statements that can specify CURRENT_USER or
CURRENT_ROLE.  In PostgreSQL, both of these are the default behavior.
Since we already have all the parsing support for this for the
GRANT (role) statement, we might as well add basic support for this
for the privilege variant as well.  This allows us to check off SQL
feature T332.  In the future, perhaps more interesting things could be
done with this, too.

Reviewed-by: Simon Riggs <simon@2ndquadrant.com>
Discussion: https://www.postgresql.org/message-id/flat/f2feac44-b4c5-f38f-3699-2851d6a76dc9@2ndquadrant.com
2021-01-30 09:45:11 +01:00
..
.gitignore Remove separate files for the initial contents of pg_(sh)description 2020-01-19 13:54:58 +02:00
aclchk.c Allow GRANTED BY clause in normal GRANT and REVOKE statements 2021-01-30 09:45:11 +01:00
catalog.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
Catalog.pm Update copyright for 2021 2021-01-02 13:06:25 -05:00
dependency.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
genbki.pl Update copyright for 2021 2021-01-02 13:06:25 -05:00
heap.c Prevent drop of tablespaces used by partitioned relations 2021-01-14 15:32:14 -03:00
index.c Refactor option handling of CLUSTER, REINDEX and VACUUM 2021-01-18 14:03:10 +09:00
indexing.c Pass down "logically unchanged index" hint. 2021-01-13 08:11:00 -08:00
information_schema.sql Update copyright for 2021 2021-01-02 13:06:25 -05:00
Makefile Update copyright for 2021 2021-01-02 13:06:25 -05:00
namespace.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
objectaccess.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
objectaddress.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
partition.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
pg_aggregate.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
pg_cast.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
pg_collation.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
pg_constraint.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
pg_conversion.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
pg_db_role_setting.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
pg_depend.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
pg_enum.c Rename "enum blacklist" to "uncommitted enums". 2021-01-05 12:38:48 +13:00
pg_inherits.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
pg_largeobject.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
pg_namespace.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
pg_operator.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
pg_proc.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
pg_publication.c Fix error with CREATE PUBLICATION, wal_level=minimal, and new tables. 2021-01-30 00:11:38 -08:00
pg_range.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
pg_shdepend.c Prevent drop of tablespaces used by partitioned relations 2021-01-14 15:32:14 -03:00
pg_subscription.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
pg_type.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
sql_feature_packages.txt Cleanup in SQL features files 2020-03-28 08:46:18 +01:00
sql_features.txt Allow GRANTED BY clause in normal GRANT and REVOKE statements 2021-01-30 09:45:11 +01:00
storage.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
system_views.sql Add pg_stat_database counters for sessions and session time 2021-01-17 13:52:31 +01:00
toasting.c Update copyright for 2021 2021-01-02 13:06:25 -05:00