PostgreSQL 12 beta 4 up and running in less than six minutesI have realized a very short, and to some extent, boring video to demonstrate how
pgenvcan simplify the installation of PostgreSQL 12 beta 4 (as well as other versions of course).
The video shows how automated it could be to install the beta version on a FreeBSD machine. For the very impatients, the commands are essentially:
but the last command is, of course, the proof that all is up and running.
% pgenv build 12beta4 % pgenv use 12beta4 % psql -h localhost -U postgres template1
As you will see, the most of the time is spent in doing the actual compilation of the software. The value added by
pgenvis that you don’t have to deal with download links and commands to initialize your database. And once you are done, you can simply nuke the
pgsql-12beta4directory that will remove binaries and data.
pgenvcan do a lot more than just downloading and compiling PostgreSQL, but the above demonstrate how it simplifies even the boring setup tasks.