pgbrewer is a set of bash scripts that helps manage multiple version of PostgreSQL with multiple instances, all on the same server.
All install with current user. PostgreSQL instances will be launch as current user too. Prepare PostgreSQL prerequisits Prepare ssl, perl, and python (for now you need to be root)
-
Get the source
-
Copy config.sample.mk to config.mk
-
Edit the
config.mk
, specified prefix should exits and must be read, write, execute for current user. -
Run
make
andmake install
-
source .pgb_profile
-
Run
pgb_server_install /path/to/package/dir versionlabel
-
Try
pgb_instance_create versionlabel instancename
-
Try
pgb_<TAB>
, test, and tell me.
The source code is available on github: https://github.com/sttachoires
pgbrewer is developped by Stephane Tachoires under a classic 2 clauses BSD license. See license block in the scripts or the COPYRIGHT file.