Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save malkab/76f733cd73c0db9e6684cb64d39fe693 to your computer and use it in GitHub Desktop.
Save malkab/76f733cd73c0db9e6684cb64d39fe693 to your computer and use it in GitHub Desktop.
PostgreSQL - Set Up Database for Production
/**
Configure a new database for production, cutting
default permissions from public to the postgres
default database.
*/
\c postgres
-- Drop default privileges
revoke all privileges on database postgres
from public;
revoke all privileges on schema public
from public;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment