Default database named postgres on Postgresql server

前端 未结 5 1395
执念已碎
执念已碎 2020-12-12 17:41

Apparently there is a database \"postgres\" that is created by default on each postgresql server installation. Can anyone tell me or point me to documentation what it is use

5条回答
  •  佛祖请我去吃肉
    2020-12-12 18:39

    If you are using multiple database connections when creating new databases, then all the connections cannot be done to template1 or template0.

    Postgresql will throw an error if the source DB while creating new DB is accessed by other connections.

    So for creating new DBs it is better to connect postgres.

提交回复
热议问题