Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add cluster options to create more than one $PGDATA for the same version #4

Open
guedes opened this issue Jun 17, 2012 · 2 comments
Open

Comments

@guedes
Copy link
Owner

guedes commented Jun 17, 2012

This allow you to have many data directories for the same PostgreSQL Installed Version

  • create Creates a new cluster (PGDATA)
  • remove Removes a cluster
  • rename Renames a cluster
  • list List all cluster
  • import Import a cluster from tarball
  • export Export a cluster to tarball
guedes added a commit that referenced this issue Jun 18, 2012
guedes added a commit that referenced this issue Jun 26, 2012
guedes added a commit that referenced this issue Aug 6, 2012
@fabriziomello
Copy link
Contributor

I'm thinking about we have a way to manage clusters without need to set 'pgvm use' first... we must put the PostgreSQL version at the beginning of cluster name to indicate which cluster we have do sometings without need to set 'pgvm use' first. I show below some samples:

$ pgvm list
PostgreSQL Installed Version:

PostgreSQL 8.2.23  [ ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV) ]
PostgreSQL 8.3.20  [ ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV) ]
PostgreSQL 8.4.13  [ ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV) ]
PostgreSQL 9.1.5   [ ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV) ]

=> PostgreSQL 9.2.0 [ ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV) ]

$ pgvm cluster list --all
8.2.23 main is online at port 5432
8.3.20 main is offline at port 5433
8.4.13 main is offline at port 5434
9.1.5 main is offline at port 5435

$ pgvm cluster start 8.3.20@test

Comments?

@guedes
Copy link
Owner Author

guedes commented Sep 17, 2012

Please do it and send a pull request, 👍

fabriziomello added a commit to fabriziomello/pgvm that referenced this issue Sep 24, 2012
fabriziomello added a commit to fabriziomello/pgvm that referenced this issue Sep 24, 2012
@fabriziomello fabriziomello mentioned this issue Sep 24, 2012
fabriziomello added a commit to fabriziomello/pgvm that referenced this issue Sep 26, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants