Created
January 4, 2021 12:08
-
-
Save malkab/76f733cd73c0db9e6684cb64d39fe693 to your computer and use it in GitHub Desktop.
PostgreSQL - Set Up Database for Production
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
/** | |
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