risingwavelabs / risingwave

Best-in-class stream processing, analytics, and management. Perform continuous analytics, or build event-driven applications, real-time ETL pipelines, and feature stores in minutes. Unified streaming and batch. PostgreSQL compatible.
https://go.risingwave.com/slack
Apache License 2.0
7.04k stars 579 forks source link

Support ALTER DEFAULT PRIVILEGES #15136

Open StrikeW opened 8 months ago

StrikeW commented 8 months ago

Is your feature request related to a problem? Please describe.

Motivation: GRANT SELECT ON ALL TABLES IN SCHEMA public TO myuser only applies to existing tables not tables created in future.

ALTER DEFAULT PRIVILEGES can apply to future created tables. e.g.: Grant SELECT privilege to everyone for all tables (and views) you subsequently create in schema myschema

ALTER DEFAULT PRIVILEGES IN SCHEMA myschema GRANT SELECT ON TABLES TO PUBLIC;

requested by a user.

Describe the solution you'd like

No response

Describe alternatives you've considered

No response

Additional context

https://www.postgresql.org/docs/current/sql-alterdefaultprivileges.html

StrikeW commented 8 months ago

cc @yezizp2012