how to add database in a new cluster in postgreSQL?
问题 I am using sudo pg_createcluster -u=$USER --datadir=candisDatabase -l=candisDatabase/candis.psql.log 9.6 candisCluster to create a new database cluster with the specified directory as candisDatabase under the account $USER (which is 'rupav'). pg_lsclusters Ver Cluster Port Status Owner Data directory Log file 9.6 candisCluster2 5433 online rupav candisDatabase candisDatabase/candis.psql.log 9.6 main 5432 online postgres /var/lib/postgresql/9.6/main /var/log/postgresql/postgresql-9.6-main.log