我最近安装了 herokudev
数据库。然后当我输入命令行时heroku pg:info
,我得到三个数据库。
=== SHARED_DATABASE (DATABASE_URL)
Data Size 808k
=== HEROKU_POSTGRESQL_BRONZE
Plan Dev
Status available
Connections 1
PG Version 9.1.3
Created 2012-05-14 17:47 UTC
Tables 0
Conn Info "host=XXXXXX.compute-1.amazonaws.com
port=5432 dbname=resourceXXXXX
user=abcXXXXX sslmode=require
password=XXXXXXXXX"
=== HEROKU_POSTGRESQL_CHARCOAL
Plan Dev
Status available
Connections 1
PG Version 9.1.3
Created 2012-05-13 19:08 UTC
Tables 0
Conn Info "host=XXXXXXX.compute-1.amazonaws.com
port=5432 dbname=resourceXXXXX
user=YYYYYY sslmode=require
password=XXXXXXXXXXXXXXXX"
=== HEROKU_POSTGRESQL_GREEN
Plan Dev
Status available
Connections 1
PG Version 9.1.3
Created 2012-05-13 19:06 UTC
Tables 0
Conn Info "host=XXXXXXXXXXXX.compute-1.amazonaws.com
port=5432 dbname=resourceXXXXXX
user=XXXXXXXXXX sslmode=require
password=XXXXXXXXXXXXXX"
主机、资源、用户和密码各不相同。
为什么有三个?他们之间有什么区别?