[Tutorial] How to add another PostgreSQL version (PostgreSQL 12.1)
-
Adding another PostgreSQL version is very easy with Laragon.
Assume we want to use PostgreSQL 12.1 64-bit (or other versions)- Download
PostgreSQL 12.1 (64-bit)
:
http://get.enterprisedb.com/postgresql/postgresql-12.1-1-windows-x64-binaries.zip
- Extract the downloaded to (*):
bin\postgresql\postgresql-12.1
C:\laragon -- bin -- postgresql -- postgresql-12.1 -- bin -- doc -- include -- lib -- pgAdmin 4 .....
- Close Laragon, then open it again (to refresh the Menu). Select the new version at: Laragon Menu > PostgreSQL> Version > postgresql-12.1
Very easy huh. That's all forks!
*Note: after extracting, you rename the
pgsql
dir topostgresql-12.1
.
- Download
-
Some pics:
- Folder structure:
-
Menu:
!
-
Connect (using Terminal):
- Folder structure:
-
As always, outstanding
-
@leokhoa @Fuad-Fadhil-Azzar @rizaldywirawan
just adding postgresql-10.5.2 to laragon and found the same error, the webserver for pgadmin4 won't start even when opening directly from pgAdmin 4\bin\pgAdmin4.exe
trying to change to pgAdmin3 with no luck because of too many warnings of incompatibility, then it just crossed my mind, "Aha maybe it's just because of that administrative privilige, so try to run pgAdmin 4\bin\pgAdmin4.exe as administrator and it works (the browser pops out with address set to "http://127.0.0.1:51237/browser/" so because this is my first time using postgresql I consider it works)
-
Testing:
- Check version: open Terminal (Ctrl - Alt - T), and type
psql --version
- Create database "test":
createdb test
- Connect to database "test":
psql test
You can use
pgAdmin 4
in Menu > PostgreSQL > pgAdmin 4 to operate PostgreSQL efficiently.