Postgres

PostGIS Geography vs. Geometry: Choosing the Right Type for Your Spatial Data

PostGIS Geography vs. Geometry: Choosing the Right Type for Your Spatial Data

Valerie Parham-Thompson
If you’ve ever installed PostGIS and opened the documentation, you’ve run into the type decision right away: geometry or geography? They look similar, they both store spatial coordinates, and they share many function names. The difference matters more than it first appears. Choosing the wrong one leads to silently incorrect distance calculations.
Foreign Data Wrappers

Foreign Data Wrappers

Using foreign data wrappers to combine metrics across a distributed database cluster

Valerie Parham-Thompson
I was recently setting up a demo to show off query logging features. Two common extensions, pg_stat_statements and pg_stat_monitor, store data locally. In the case of a distributed database, it is helpful to combine the query runtimes on all nodes.
Provision Ansible Postgres on Mac

Provision Ansible Postgres on Mac

Using Ansible to create a local testing environment for Postgres on Mac

Valerie Parham-Thompson
I added a new database to my demo platform: Postgres. This code helps me provision Ansible Postgres on Mac for demo purposes or simple functional testing, and it is an extension of previous work I shared: https://valerieparhamthompson.com/posts/string-search/.