guedes / pgvm Goto Github PK
View Code? Open in Web Editor NEWPostgreSQL Version Manager
PostgreSQL Version Manager
Hi, I am running pgvm successfully, byt when I installed it on my other mac, I can't run psql:
psql: could not connect to server: Connection refused
Is the server running on host "localhost" (::1) and accepting
TCP/IP connections on port 5432?
could not connect to server: Connection refused
Is the server running on host "localhost" (127.0.0.1) and accepting
TCP/IP connections on port 5432?
installing the contrib package complains about connection too
I have done:
pgvm install 9.3.5
pgvm use 9.3.5
pgvm cluster create master
pgvm cluster start master
And I also tried restart. which psql
returns what seems correct path:
/Users/michal/.pgvm/environments/current/bin/psql
Can anyone point me the right direction?
The farm machines in travis-ci.org is not have en.US as a locale/encoding type. The suggestion tttest using UTF-8 as default .
This allow you to have many data directories for the same PostgreSQL Installed Version
fike@alderoon:~/.pgvm$ pgvm install master
/home/fike/.pgvm/include/helpers: line 165: cd: /home/fike/.pgvm/src/postgresql-clone: Arquivo ou diretório não encontrado
So I was running an instance of pgvm on a cluster managed on localhost (OSX pg version 9.3.10) and I wasn't able to connect to that cluster on port 5432. Other ports seem to be fine when I modify the postgresql.conf file in the data directory. I think this may be an issue with pgvm or how the clusters get setup. It says that the cluster is running and it's running on the correct port with a PID but nothing (pgvm console or other applications) can connect to it.
Again, not sure if thats a pgvm problem or not, but the contribs don't build on my mac :(
~/.pgvm/src/postgresql-9.3.5/contrib ((detached from v0.2.1))$ make
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C adminpack all
make[1]: Nothing to be done for `all'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C auth_delay all
make[1]: Nothing to be done for `all'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C auto_explain all
make[1]: Nothing to be done for `all'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C btree_gin all
make[1]: Nothing to be done for `all'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C btree_gist all
make[1]: Nothing to be done for `all'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C chkpass all
make[1]: Nothing to be done for `all'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C citext all
make[1]: Nothing to be done for `all'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C cube all
make[1]: Nothing to be done for `all'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C dblink all
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C ../../src/interfaces/libpq all
make[2]: Nothing to be done for `all'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C dict_int all
make[1]: Nothing to be done for `all'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C dict_xsyn all
make[1]: Nothing to be done for `all'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C dummy_seclabel all
make[1]: Nothing to be done for `all'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C earthdistance all
make[1]: Nothing to be done for `all'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C file_fdw all
make[1]: Nothing to be done for `all'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C fuzzystrmatch all
make[1]: Nothing to be done for `all'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C hstore all
make[1]: Nothing to be done for `all'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C intagg all
make[1]: Nothing to be done for `all'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C intarray all
make[1]: Nothing to be done for `all'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C isn all
make[1]: Nothing to be done for `all'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C lo all
make[1]: Nothing to be done for `all'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C ltree all
make[1]: Nothing to be done for `all'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C oid2name all
make[1]: Nothing to be done for `all'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C pageinspect all
make[1]: Nothing to be done for `all'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C passwordcheck all
make[1]: Nothing to be done for `all'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C pg_archivecleanup all
make[1]: Nothing to be done for `all'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C pg_buffercache all
make[1]: Nothing to be done for `all'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C pg_freespacemap all
make[1]: Nothing to be done for `all'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C pg_standby all
make[1]: Nothing to be done for `all'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C pg_stat_statements all
make[1]: Nothing to be done for `all'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C pg_test_fsync all
make[1]: Nothing to be done for `all'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C pg_test_timing all
make[1]: Nothing to be done for `all'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C pg_trgm all
make[1]: Nothing to be done for `all'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C pg_upgrade all
make[1]: Nothing to be done for `all'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C pg_upgrade_support all
make[1]: Nothing to be done for `all'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C pgbench all
make[1]: Nothing to be done for `all'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C pgcrypto all
make[1]: Nothing to be done for `all'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C pgrowlocks all
make[1]: Nothing to be done for `all'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C pgstattuple all
make[1]: Nothing to be done for `all'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C pg_xlogdump all
make[1]: Nothing to be done for `all'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C postgres_fdw all
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C ../../src/interfaces/libpq all
make[2]: Nothing to be done for `all'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C seg all
make[1]: Nothing to be done for `all'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C spi all
make[1]: Nothing to be done for `all'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C tablefunc all
make[1]: Nothing to be done for `all'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C tcn all
make[1]: Nothing to be done for `all'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C test_parser all
make[1]: Nothing to be done for `all'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C tsearch2 all
make[1]: Nothing to be done for `all'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C unaccent all
make[1]: Nothing to be done for `all'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C vacuumlo all
make[1]: Nothing to be done for `all'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C worker_spi all
make[1]: Nothing to be done for `all'.
It would be nice if I could choose at install step which contribs/extensions will be installed.
We could, also, create an action to do that integrated with pgxn-client
~ (1.9.3-p327)
# pgvm install 9
downloading 'http://ftp.postgresql.org/pub/source/v/postgresql-.tar.gz', please be patient... done.
checking 'postgresql-.tar.gz' integrity...
~ (1.9.3-p327)
# pgvm list
Please, install a PostgreSQL Version!
~ (1.9.3-p327)
#
Do you need some information to trace the problem? :)
Not sure if this is an issue with pgvm, any ideas?
configuring PostgreSQL Version: 9.5.3 ... Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
done.
compiling ... FATAL: role "ubuntu" does not exist
Then install then finishes and seems to work.
Today pgvm
is all in bash
, but talking with @fabriziomello, @lhcezar and @fike, we think that this could be split into more layers. The actual internal file structure is stable and this could be a good signal to create a plumbing lib.
Is it still maintain? @guedes
This code don't work from /etc/rc.local:
sudo -u user111 /home/user111/.pgvm/bin/pgvm cluster start user111
How can I auto start cluster after system reboot?
Hi, how do I install extensions, such as hstore?
Actually, install command don't test if your parameters is empty. When it tries to install, it happen this error:
fike@alderoon:~$ pgvm install
downloading 'http://ftp.postgresql.org/pub/source/v/postgresql-.tar.gz', please be patient... done.
checking 'postgresql-.tar.gz' integrity... ERRO: CHECKSUM of 'postgresql-.tar.gz' has failed! Aborting!
fike@alderoon:~$
It will be interesting to a postgres developer if pgvm allow installation from a branch or a branch plus a patch or a list of patches
bblive@Ubuntu-1404-trusty-64-minimal:~$ curl -s -L https://raw.github.com/guedes/pgvm/master/bin/pgvm-self-install | bash
PostgreSQL version manager's installer
wait while the installer fetches pgvm's files ...sorry, pgvm could not be installed
This could be implemented in some ways, I can figure out two:
What do you think @fike ?
This action shows current postgres version. It could be use with datasets
to show which dataset is currently in use.
Hi, I get this error message when I try to pull postgresql from Heroku.
Stack overflow says thats a problem with my local psql, that I need to recompile it with SSL support.
How can I achieve this with pgvm?
In the pgvm_comment_test.sh has some tests with stdout message wrong word (enviroment).
This needs appears in #20. We should change download
function to supports something linke: download url -
to send file to stdout.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.