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.
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.
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
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.
David Christensen retweeted
We're at @pgDayParis today! Elizabeth and Jean-Paul are excited to chat Postgres, be sure to stop by the @crunchydata
table.
@sqlliz @jpargudo
David Christensen retweeted
Last week at @socallinuxexpo David and Elizabeth covered some of the things they encountered in the last year working with a 25TB+ PostgreSQL database. @sqlliz @pg_dwc
youtube.com/watch?v=cBVRtrEh…
David Christensen retweeted
Was way to excited to eavesdrop on a “it was the best SQL I have ever seen” conversation, only to realize they meant a movie sequel
David Christensen retweeted
Friendly reminder, I'll be up in Kansas City for the #PostgreSQL Meetup there.
Here are all the details. Also, I'm, well @redgate is, hosting a happy hour immediately after the session. Please, join us and let's talk #DevOps
meetup.com/kansas-city-postg…
David Christensen retweeted
Replying to @pg_dwc
@pg_dwc and I will be doing a talk 👯 at @socallinuxexpo in LA March 9-10 at #Postgres days. We'll be talking about running 🐘 at Scale with really big databases. David has a ton of tips he's collected over the last few years. Come see us and other great Postgres folks!
David Christensen retweeted
Our own Elizabeth Christensen (@sqlliz) presented, How To Be a Postgres DBA in a Pinch at DjangoCon US 2022. You can find the recorded talk here: youtube.com/watch?v=UAtW6t9L…
David Christensen retweeted
Video of David Christensen's (@pg_dwc) talk from @pgconfnyc is now available -
How to Tame A Mastodon: Lessons for PostgreSQL at Scale: youtube.com/watch?v=9_pbEVeM…
David Christensen retweeted
Replying to @chris_bandy
@chris_bandy @pg_dwc @danfarina Thanks for the help getting this one together. Very cool feature! crunchydata.com/blog/postgre….
David Christensen retweeted
Super excited for this, lower entry @crunchydata plans starting at $10 a month for an awesome Postgres experience - crunchydata.com/blog/making-…













