PostgreSQL: Temporarily disable connections

后端 未结 5 1814
我在风中等你
我在风中等你 2020-12-14 00:50

I have a script in PostgreSQL which restores test database from dump every night. The database is accessed by app servers and processes with connection pool which keeps a fe

5条回答
  •  既然无缘
    2020-12-14 01:28

    Starting PostgreSQL 9.5 we finally can:

    ALTER DATABASE db WITH ALLOW_CONNECTIONS false;
    

提交回复
热议问题