Forked from rayrayzayzay/gist:5b7db5db112a919f918b69d4c981861a
Created
October 3, 2024 20:16
-
-
Save cduruk/dfd4316cb0588a0c57be99c300aab119 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE USER felt_user WITH PASSWORD 'your_secure_password'; | |
GRANT CONNECT ON DATABASE your_database TO felt_user; | |
GRANT USAGE ON SCHEMA public TO felt_user; | |
GRANT SELECT ON ALL TABLES IN SCHEMA public TO felt_user; | |
-- Grant select permission on future tables | |
ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO felt_user; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment