What is purpose of `ALLOW_CONNECTIONS` being set so no one can connect to the new Postgres database?
Clash Royale CLAN TAG#URR8PPP
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;
up vote
1
down vote
favorite
In Postgres 11, the CREATE DATABASE
command that makes a new catalog has an option ALLOW_CONNECTIONS
. The documentation says this option can be used to block all connections to the database:
[ ALLOW_CONNECTIONS [=] allowconn ]
allowconn
If false then no one can connect to this database. The default is true, allowing connections (except as restricted by other mechanisms, such as GRANT/REVOKE CONNECT).
➥ Why would anyone want to create a database that nobody can connect to?
➥ If you cannot connect, how can you ever change this setting to true
to allow connections?
postgresql configuration connections
add a comment |Â
up vote
1
down vote
favorite
In Postgres 11, the CREATE DATABASE
command that makes a new catalog has an option ALLOW_CONNECTIONS
. The documentation says this option can be used to block all connections to the database:
[ ALLOW_CONNECTIONS [=] allowconn ]
allowconn
If false then no one can connect to this database. The default is true, allowing connections (except as restricted by other mechanisms, such as GRANT/REVOKE CONNECT).
➥ Why would anyone want to create a database that nobody can connect to?
➥ If you cannot connect, how can you ever change this setting to true
to allow connections?
postgresql configuration connections
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
In Postgres 11, the CREATE DATABASE
command that makes a new catalog has an option ALLOW_CONNECTIONS
. The documentation says this option can be used to block all connections to the database:
[ ALLOW_CONNECTIONS [=] allowconn ]
allowconn
If false then no one can connect to this database. The default is true, allowing connections (except as restricted by other mechanisms, such as GRANT/REVOKE CONNECT).
➥ Why would anyone want to create a database that nobody can connect to?
➥ If you cannot connect, how can you ever change this setting to true
to allow connections?
postgresql configuration connections
In Postgres 11, the CREATE DATABASE
command that makes a new catalog has an option ALLOW_CONNECTIONS
. The documentation says this option can be used to block all connections to the database:
[ ALLOW_CONNECTIONS [=] allowconn ]
allowconn
If false then no one can connect to this database. The default is true, allowing connections (except as restricted by other mechanisms, such as GRANT/REVOKE CONNECT).
➥ Why would anyone want to create a database that nobody can connect to?
➥ If you cannot connect, how can you ever change this setting to true
to allow connections?
postgresql configuration connections
postgresql configuration connections
asked 3 hours ago


Basil Bourque
2,87522036
2,87522036
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
2
down vote
It gives you a chance to revoke
connect
from unwanted users before doing alter database
... allow connections
1
You might want to add to your answer that a superuser can always connect.
– Colin 't Hart
1 hour ago
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
It gives you a chance to revoke
connect
from unwanted users before doing alter database
... allow connections
1
You might want to add to your answer that a superuser can always connect.
– Colin 't Hart
1 hour ago
add a comment |Â
up vote
2
down vote
It gives you a chance to revoke
connect
from unwanted users before doing alter database
... allow connections
1
You might want to add to your answer that a superuser can always connect.
– Colin 't Hart
1 hour ago
add a comment |Â
up vote
2
down vote
up vote
2
down vote
It gives you a chance to revoke
connect
from unwanted users before doing alter database
... allow connections
It gives you a chance to revoke
connect
from unwanted users before doing alter database
... allow connections
answered 1 hour ago


Jasen
964310
964310
1
You might want to add to your answer that a superuser can always connect.
– Colin 't Hart
1 hour ago
add a comment |Â
1
You might want to add to your answer that a superuser can always connect.
– Colin 't Hart
1 hour ago
1
1
You might want to add to your answer that a superuser can always connect.
– Colin 't Hart
1 hour ago
You might want to add to your answer that a superuser can always connect.
– Colin 't Hart
1 hour ago
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f221172%2fwhat-is-purpose-of-allow-connections-being-set-so-no-one-can-connect-to-the-ne%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password