Adventures in PGADMIN4

Dec 17, 2017 | postgis, Python, QGIS

I’ll attempt to make this shorter than my adventure. So in the middle of rewriting the QGIS Class I decided to kickstart the PostGIS class…..Because why not do two things at once.

The QGIS part I have covered. The PostGIS part left me with two questions. First – how many wrong ways can someone install PostgreSQL/PostGIS and secondly do I want to make everyone use command line (psql) or a GUI (PGADMIN3). I lean towards command line because I like typing. That’s how I learned it – BUT – people like having something in front of them.

I run Linux on my day to day workstation and if you install pgadmin you get pgadmin3. I barely use pgadmin3. I will install it because if a client does anything with postgresql they will have this installed.

Pgadmin3 isn’t updated anymore. All efforts have moved to pgadmin4. So I decided to give pgadmin4 a whirl and Oh Boy. Since I’m running ubuntu I’m left with docker, python wheel (whatever that is), and compiling it from scratch to get it to run. I usually am OK with compiling but in skimming the README I’m left with talk of python virtual environments. Python wheel goes down that path. Which left me with Docker. I went with the docker option. If I was somewhat more prone to running something more common than linux I could just run a exe for windows or install a package for MAC (if I had one) and life would be easier.

Since I’m running this in docker (article coming on that shortly) I connect through a web browser and there we are. We have graphs and charts and jquery and python and some other catchy programming things I know nothing about. It’s a bit overwhelming. So much so the one person I’ve been testing my postgis judo on ran from pgadmin4. One of my clients downloaded it, installed it, and removed it and went back to pgadmin3.

I asked twitter and was pointed to DBeaver. I think overall the question of “If not pgadmin4 then what?” seems to be on a lot of people’s minds. So I installed DBeaver. I’ve been pleasantly surprised.

I have a diagram of my database for starters. I have the all familiar SQL window in which I can execute scripts. This is running locally so I just save out what I need and keep moving. It appears friendly enough for newbies in a class.

So what have we learned? Well- I can use docker. If you are looking for an alternative GUI for your database needs DBeaver is pretty nice. I have pgadmin4 running in docker (even did an install with my windows 10 laptop) so I can keep learning on that one. Actually – I’m debating running pgadmin4 on my workstation running postgis. I can install docker and install pgadmin4 and just let it run. It’s out of the way and I can connect to it from anywhere on the network.

I won’t be running pgadmin4 for the class though – it has a high fear factor. I don’t want to have to spend time worrying over that while having to push and pull people through a postgis/postgresql install. Anyway – next up – Docker. Which given the time of year should be titled “The not quite Nightmare before Christmas”.

 

You may also like

TNGIC 2024

TNGIC 2024

So - if you're coming to the 2024 TNGIC (TN Geographic Information Council) meeting (April 9-11 2024) to talk about how no one understands what you do......I'm doing a workshop. What workshop? It's a new workshop. QGIS and LIDAR data. As to what I do with the class...

iNaturalist and QGIS

I am probably the worst for being able to properly name "things". There are big trees and little trees. There are the annoying bugs and the not so annoying bugs. There are ducks, birds, bigger birds, and the birds that hang out at my bird feeder. As much time as I...

Mergin Maps and DB Sync

Mergin Maps and DB Sync

I don't know if I would label this exercise as fun but I've learned alot. I don't do a ton of data collection these days. At one time a few years ago I was out in the field with Fulcrum, a laptop, and sketchy internet for days at a time. These days I'm hardly ever...