Skip to content

Instantly share code, notes, and snippets.

@cduruk
Forked from rayrayzayzay/gist:5b7db5db112a919f918b69d4c981861a
Created October 3, 2024 20:16
Show Gist options
  • Save cduruk/dfd4316cb0588a0c57be99c300aab119 to your computer and use it in GitHub Desktop.
Save cduruk/dfd4316cb0588a0c57be99c300aab119 to your computer and use it in GitHub Desktop.
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