PostgreSQL: Is it better to use multiple databases with one schema each, or one database with multiple schemas?

后端 未结 5 1993
被撕碎了的回忆
被撕碎了的回忆 2020-12-02 04:06

After this comment to one of my question, I\'m thinking if it is better using one database with X schemas or vice versa.

My situation: I\'m developing a web applicat

5条回答
  •  爱一瞬间的悲伤
    2020-12-02 04:20

    A PostgreSQL "schema" is roughly the same as a MySQL "database". Having many databases on a PostgreSQL installation can get problematic; having many schemas will work with no trouble. So you definitely want to go with one database and multiple schemas within that database.

提交回复
热议问题