Some thoughts about PostgreSQL performance in an article form.
David Christensen (@pg_dwc): Is Postgres Read Heavy or Write Heavy? (And Why You Should You Care) postgr.es/p/7j6
David Christensen retweeted
When you're married to a Postgres person and you share everything - including a job, a house, and a bunch of kids ... pretty sure GROUP BY ALL is the ultimate SQL patch to represent that. ❤️ 🐘
Postgres 19 GROUP BY ALL? 👀 @pg_dwc!!
postgresql.org/message-id/F6…
David Christensen retweeted
Let’s talk about Postgres scan types. Most of us have been in EXPLAIN and read some plans. Here’s some details about the different scan types and a diagram for thinking about how they work.
❖ Sequential scan: reads the entire table, row by row checking to see what matches the query conditions.
❖ Index Scan:
A basic index scan uses a B-tree to quickly find the exact location of the data. It's a two-step process where first Postgres finds the entry in the index and then the row it fetches the row from the table.
❖ Bitmap Scan:
1. Bitmap Index Scan: First, Postgres scans one or more indexes to create an in-memory "bitmap", a simple map of all the table pages that *might* contain rows you need.
2. Bitmap Heap Scan: The bitmap is used to visit the main table. The key here is that it reads the required pages from the disk sequentially, which can be much faster than the random jumping of a standard index scan.
❖ Parallel Sequential Scan:
Postgres uses multiple background workers to perform a Sequential Scan on a single large table at the same time. The table is broken into chunks, and each worker gets a chunk to scan. They all work in parallel, and their results are combined at the end in a gather process.
❖ Parallel index scan:
Postgres uses multiple background workers to scan different portions of a single B-tree index concurrently and return matching rows from the heap; workers take turns reading from the index.
❖Index-Only Scan:
An Index-Only Scan is the superstar of scans and answers the entire query using only the information stored within the index itself. It never even has to touch the main table.
Hoping that showing up at an antique mall with my wife and a U-Haul does not rate as one of 2025’s worst mistakes.
3
2
214
Really excited to have worked on this; we really hide the complexity involved with some cool functionality for a truly seamless experience.
Today we're announcing the availability of logical replication from Postgres to Iceberg with Crunchy Data Warehouse.
Now you can seamlessly move data and stream changes from your operational database into an analytical system.
crunchydata.com/blog/logical…
Looking forward to discussing my favorite database software and security concepts in particular. I’ve seen the development of @sqlliz ‘s talk here and you won’t want to miss it!
KC friends 📣 I'll be giving a talk at the Kansas City Postgres Meetup this week on Thursday night about Postgres Security. @pg_dwc will be there too! Join us. meetup.com/kansas-city-postg…
2
195
David Christensen retweeted
\conninfo is a command in psql for showing your current connection details. If multiple terminal windows and databases are open, you can check connection details without logging out and back in.
\conninfo will display:
-database name
-username
-host and port of the database server (local sockets just show the port)
-connection type
Sample results look like this:
postgres# \conninfo
You are connected to database "postgres" as user "application" via socket in "/tmp" at port "5432".
Postgres history: this feature was a patch written by our engineer David Christensen, @pg_dwc.
Craig really highlights some of the really interesting work we've been doing here at Crunchy Data. It is hard to make complex things simple and I think we've done a good job here at making things Just Work™ in as natural a Postgres experience as possible.
Multiple times a week I'm having conversations with people that have built overly complex data pipelines. What used to just work is now a team of people gluing and duct taping solutions together with the latest shiny data engineering tools.
When I initially showed some of what we build to @crunchydata to people in the Postgres would they sort of reacted: "thats it" like it's simple it just works whats so magical.
In contrast when I show this to others who have built and maintained the complex pipelines and systems they're mind is blown.
One really popular exercise to evaluate a data warehouse or processing system is how it performs analyzing the NYC taxi trip data which @marklit82 does all the time.
One piece of this is always the performance, the other is how easy or hard it is. On Crunchy Bridge for Analytics it's literally two lines. @marcoslot and the entire team really nailed it on this one with developer experience.
CREATE TABLE taxi_trips() with (load_from = 'd37ci6vzurychx.cloudfront.ne…');
SELECT count(*) FROM taxi_trips;
I think my first computer I got back in the late 1900’s was around that price point but for a 60 mhz Power Mac 6100/60. I hesitate to do the math there on either the specs or inflation!
I do not get how laptops have had like 0 inflation in 30 years. My dad bought me my first laptop in '97 and it was $3,000. ChatGPT just told me my new Apple m4 is 375 times more powerful than a '97 dell
- 14-Core CPU
- 20-Core GPU
- 24GB Memory
- 1TB SSD
$2,399 ... like how?
1
1
213
David Christensen retweeted
Announcing Crunchy Bridge for Analytics: Your Data Lake in PostgreSQL
crunchydata.com/blog/crunchy…
David Christensen retweeted
David Christensen (@pg_dwc): Building PostgreSQL Extensions: Dropping Extensions and Cleanup postgr.es/p/6sR
David Christensen retweeted
Elizabeth Garrett Christensen (@sqlliz): Contributing to Postgres 101: A Beginner's Experience postgr.es/p/6sl
There's still time to join the open PostgreSQL Extensions Exosystem Mini-Summit, starting in 1 hour:
eventbrite.com/x/postgres-ex…
David Christensen retweeted
Kansas City Postgres meetup on Monday at 5 at the Lenexa library. Talking about CDC pipelines and logical replication with David Christensen (@pg_dwc) meetup.com/kansas-city-postg…
David Christensen retweeted
I've joined the Board of The United States PostgreSQL Association @pgus 🥳🐘. Our mission of education in PostgreSQL is something I care a lot about. If you have thoughts on Postgres events, education, diversity, or any of our initiatives, reach out anytime.














