#​582 — December 18, 2024

Web Version

🎄 This week we're covering a few recent items but will then head into a 2024 roundup of how things went in the Postgres world, as well as the most clicked items of the year, in case you missed them at the time.

We're taking a Christmas break for two weeks and will be back on January 9, 2025, so we hope you have a Merry Christmas and a Happy New Year!
__
Peter Cooper and the Cooperpress team

Together with  Timescale logo

Postgres Weekly

Some of My Favorite Things – Postgres Queries — There’s not really any big Postgres news this week, so why not enjoy this festive gift of some (reasonably complex) SQL queries Shane uses to track database usage in various ways, to see unused indexes, to generate a vacuuming report, and more.

Shane Borden

Building AI Apps on Postgres? Start with pgai — pgai is a PostgreSQL extension that brings more AI workflows to PostgreSQL, like embedding creation and model completion. pgai empowers developers with AI superpowers, making it easier to build search and retrieval-augmented generation (RAG) applications.

Timescale sponsor

pg_incremental: Incremental Data Processing in Postgres — Marco introduces a new Postgres extension offering automated, incremental batch processing for creating reliable processing pipelines. GitHub repo.

Marco Slot

📄 Exploring Postgres's Arena Allocator by Writing an HTTP Server from Scratch – An odyssey that's not for the faint of heart! Phil Eaton

📄 Quick Benchmark of Improvements to Large Object Dumping in Postgres 17 Michael Banck

📄 Shrinking a Postgres Table John Nunemaker

QUICK BITS:

🥇 Top Developments and Items of 2024

2024 was another great year for Postgres. Here are some of the highlights, plus one sad development, looking back:

Now, for the top 5 links of the year based upon reader engagement:

1. SQL Query Optimization: A Comprehensive Developer's Guide — A bumper packed post digging into the optimization of SELECT, INSERT, and DELETE queries, covering areas like using indexes, paginating results, avoiding joins, and how window functions can help (or not). Not Postgres-only but written with Postgres in mind.

Francesco Tisiot

2. Optimizing Postgres Table Layout for Maximum Efficiency — The alignment of data within broader data structures has long been an important factor for optimization in low level programming, but it can affect your Postgres tables too. Renato looked at how table layout can impact both storage efficiency and query performance.

Renato's Runtime Reflections

3. Can Postgres Replace Redis as a Cache? — Redis is a popular, high performance in-memory data storage server commonly used for caching, but if we can just use Postgres for everything, could Postgres take on the job instead?

Raphael De Lio

4. pgPedia: A Postgres Encyclopedia of Sorts — An interesting, cleanly formatted wiki-esque reference guide to Postgres’ features and settings that complements the official documentation well. Well worth poking around a bit.

Postgrespedia

5. Hacking on PostgreSQL is Really Hard — Robert has consistently been in the top ten committers to Postgres for many years, but this year he reflected on just how intimidating the process of contributing to Postgres can be, especially for newcomers.

Robert Haas

👋 We are now off for two weeks for our Christmas break. Merry Christmas if you celebrate too. We return on Thursday, January 9, 2025 (yes, we're changing the day Postgres Weekly goes out in the new year – keeps things interesting!)