Quantcast
Channel: User Frank Heikens - Database Administrators Stack Exchange
Viewing all articles
Browse latest Browse all 123

Answer by Frank Heikens for Created user can access all databases in PostgreSQL without any grants

$
0
0

PUBLIC has access to the database by default, but it can't access the data. You can REVOKE the PUBLIC:

REVOKE CONNECT ON DATABASE your_database FROM PUBLIC;

If you want this setting for all future databases, revoke CONNECT on the template1 database (default template database for creating a new database):

REVOKE CONNECT ON DATABASE template1 FROM PUBLIC;

Viewing all articles
Browse latest Browse all 123

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>