Package: postgresql-common
Version: 110

pg_createcluster deletes all traces of a cluster (as pg_dropcluster would
do), if an already configured cluster is supplied as a parameter:

1 $ pg_createcluster 8.4 test
  Creating new cluster (configuration: /etc/postgresql/8.4/test, data: 
/var/lib/postgresql/8.4/test)...
  Moving configuration file /var/lib/postgresql/8.4/test/postgresql.conf to 
/etc/postgresql/8.4/test...
  Moving configuration file /var/lib/postgresql/8.4/test/pg_hba.conf to 
/etc/postgresql/8.4/test...
  Moving configuration file /var/lib/postgresql/8.4/test/pg_ident.conf to 
/etc/postgresql/8.4/test...
  Configuring postgresql.conf to use port 5433...

2 $ ls -l /var/lib/postgresql/8.4 
  total 8
  drwx------ 11 postgres postgres 4096 Sep 16 18:08 main
  drwx------ 11 postgres postgres 4096 Sep 16 18:09 test

3 $ pg_createcluster 8.4 test
  Error: cluster configuration already exists

4 $ ls -l /var/lib/postgresql/8.4
  total 4
  drwx------ 11 postgres postgres 4096 Sep 16 18:08 main

-- 
--  Rogutės Sparnuotos



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to