Skip to content

Instantly share code, notes, and snippets.

@aamsur-mkt
Created October 21, 2019 08:38
Show Gist options
  • Select an option

  • Save aamsur-mkt/c1e57a15fbd927862fefb8a5a43931d1 to your computer and use it in GitHub Desktop.

Select an option

Save aamsur-mkt/c1e57a15fbd927862fefb8a5a43931d1 to your computer and use it in GitHub Desktop.
re Grant Permission Previliges Postgre User
\connect your_database;
REVOKE ALL ON DATABASE your_database FROM yourf_name;
GRANT CONNECT ON DATABASE your_database TO yourf_name;
GRANT SELECT ON ALL TABLES IN SCHEMA public TO yourf_name;
ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO yourf_name;
@aamsur-mkt

Copy link
Copy Markdown
Author

GRANT USAGE ON schema public to yourf_name;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment