#​574 — October 16, 2024

Web Version

📝 We're taking next week off, so the next issue of Postgres Weekly will be with you on Tuesday, October 30 – see you then!
__
Peter Cooper, your editor

Together with  pgAnalyze

Postgres Weekly

Convert JSON into Columns and Rows with JSON_TABLE — New Postgres 17 feature alert! JSON_TABLE is a function that lets you query JSON data and get results in a typical, relational view. Paul shows us a practical use case.

Paul Ramsey

SQL/JSON is Here (Somewhat!)JSON_TABLE (above) is great, but makes up just one part of the SQL/JSON experience available. SQL/JSON is a broad term for a path language, query functions, and operators for working with JSON data from SQL, and here we see more of what Postgres 17 brings to the JSON table.

Hubert depesz Lubaczewski

Get Proactive with Postgres Performance with This Monthly Check List — Staying on top of PostgreSQL maintenance can be challenging. Our monthly check list guides you through critical tasks to maintain performance, reliability, and uptime—quickly and effectively. Download your free check list today.

pganalyze sponsor

Trigger Recursion and How to Deal with It — If you’ve set up a trigger whose behavior results in the same trigger being triggered, you’re in for a lot of potentially tricky to debug problems. Luckily, it’s trivial to tweak triggers to only run when intended.

Laurenz Albe

QUICK BITS:

Is pg_dump a 'Backup' Tool? — I’ve used pg_dump to make backups, and probably so have you, but the docs seem keen to stress it’s really an export tool. Robert ponders the narrative.

Robert Haas

📄 Did You Notice Postgres's Enhanced Release Notes? Greg Sabino Mullane

📄 Tuning the glibc Memory Allocator (for Postgres) Tomas Vondra

📰 Classifieds

Join Redgate’s October 29th webinar to learn the surprising differences in stored procedures & functions between PostgreSQL and SQL Server.


🧰 PostgreSQL is all you need for AI. Use pgvectorscale to get 28x faster search, 75% cheaper vs popular vector databases.


Kestra automates your entire workflow orchestration—including ETL and real-time data processing. Scale effortlessly across Postgres and cloud stacks.

🛠 Code and Tools

Postgres Type Explorer: See Data Types for Various Use Cases — As part of the launch of Mastering Postgres, Aaron Francis has unveiled an online tool that offers recommendations of which data types to use for different situations (e.g. storing hashes, monetary amounts, UUIDs, binary data). It also gives indications of how much storage space each could use.

Aaron Francis

PGroonga: Extend Full Text Search Features to All Languages — Brings the Groonga fulltext search engine to Postgres which can suit certain use cases better than the Postgres default, such as with Japanese or Chinese. Now supports Postgres 17 as of v3.2.4.

PGroona Project

Greenmask: Postgres Data Masking and Obfuscation Tool — A Go-powered utility for dumping a Postgres database and anonymizing the data in a deterministic way. GitHub repo.

Greenmask