š¾ Archived View for drewdevault.com āŗ 2021 āŗ 08 āŗ 05 āŗ In-praise-of-Postgres.gmi captured on 2021-12-06 at 14:29:53. Gemini links have been rewritten to link to archived content
ā¬ ļø Previous capture (2021-11-30)
-=-=-=-=-=-=-
After writing Praise for Alpine Linux, I have decided to continue writing more articles in praise of good software. Today, Iād like to tell you a bit about PostgreSQL.
Many people donāt understand how old Postgres truly is: the first releaseĀ¹ was in July of 1996. It used this logo:
After 25 years of persistence, and a better logo design, Postgres stands today as one of the most significant pillars of profound achievement in free software, alongside the likes of Linux and Firefox. PostgreSQL has taken a complex problem and solved it to such an effective degree that all of its competitors are essentially obsolete, perhaps with the exception of SQLite.
For a start, Postgres is simply an incredibly powerful, robust, and reliable piece of software, providing the best implementation of SQL.Ā² It provides a great deal of insight into its own behavior, and allows the experienced operator to fine-tune it to achieve optimal performance. It supports a broad set of SQL features and data types, with which I have always been able to efficiently store and retrieve my data. SQL is usually the #1 bottleneck in web applications, and Postgres does an excellent job of providing you with the tools necessary to manage that bottleneck.
Those tools are also exceptionally well-documented. The PostgreSQL documentation is incredibly in-depth. It puts the rest of us to shame, really. Not only do they have comprehensive reference documentation which exhaustively describes every feature, but also vast amounts of prose which explains the internal design, architecture, and operation of Postgres, plus detailed plain-English explanations of how various high-level tasks can be accomplished, complete with the necessary background to understand those tasks. Thereās essentially no reason to ever read a blog post or Stack Overflow answer about how to do something with Postgres ā the official docs cover every aspect of the system in great depth.
PostgreSQL's latest documentation
The project is maintained by a highly disciplined team of engineers. I have complete confidence in their abilities to handle matters of performance, regression testing, and security. They publish meticulously detailed weekly development updates, as well as thorough release notes that equips you with sufficient knowledge to confidently run updates on your deployment. Their git discipline is also legendary ā hereās the latest commit at the time of writing:
postgres_fdw: Fix issues with generated columns in foreign tables. postgres_fdw imported generated columns from the remote tables as plain columns, and caused failures like "ERROR: cannot insert a non-DEFAULT value into column "foo"" when inserting into the foreign tables, as it tried to insert values into the generated columns. To fix, we do the following under the assumption that generated columns in a postgres_fdw foreign table are defined so that they represent generated columns in the underlying remote table:
Theyāre all like this.
Ultimately, PostgreSQL is a technically complex program which requires an experienced and skilled operator to be effective. Learning to use it is a costly investment, even if it pays handsomely. Though Postgres has occasionally frustrated or confused me, on the whole my feelings for it are overwhelmingly positive. Itās an incredibly well-made product and its enormous and still-growing successes are very well-earned. When I think of projects which have made the most significant impacts on the free software ecosystem, and on the world at large, PostgreSQL has a place on that list.
Ā¹ The first release of PostgreāSQLā. Its lineage can be traced further back.
Ā² No qualifiers. Itās straight-up the best implementation of SQL.
\ \_____ ###[==_____> /_/
āIn praise of PostgreSQLā was published on August 5, 2021.
View āIn praise of PostgreSQLā on the WWW
The content for this site is CC-BY-SA. The code for this site is MIT.