Neues vom PostgreSQL Planet
Christophe Pettus: All Your GUCs in a Row: port
Chris van Eijk: A read-only user in PostgreSQL: what it can still do
Chris van Eijk: must be owner of table in PostgreSQL: who may alter it?
Chris van Eijk: Who bypasses row-level security in PostgreSQL? Measured
Alexander Ioffe: Explain Analyze is a sample-size of One: Your query ran 1,100x faster the second time. It wasn't the cache.
Chris van Eijk: ALTER DEFAULT PRIVILEGES not working? What we measured
Chris van Eijk: permission denied for table in PostgreSQL: which grant?
Chris van Eijk: current_setting and set_config in PostgreSQL, measured
Hollis Varden: What deleting rows does to a PostgreSQL table
A table that shrinks in rows does not shrink on disk. Everyone who has run PostgreSQL for a while knows this in general. I wanted the actual numbers, because "VACUUM reclaims space" means something narrower than it sounds.
Short answer: I deleted every second row of a 2,000,000-row table. The table was 137 MB before, 137 MB after the DELETE, 137 MB after VACUUM, and 68 MB after VACUUM FULL.
Hollis Varden: Four PostgreSQL arguments that came out even
Some advice gets repeated in code review because it sounds like it should matter. I picked four I have seen argued about and measured them. I expected at least two clear winners. I got three ties and one result that went the opposite way from the advice.
SetupPostgreSQL 18.6, default settings. 2020 13-inch MacBook Pro, Intel i5-8257U, 8 GB RAM. A 2,000,000-row table u with an id, an email, a status and a timestamp. Times are execution times from EXPLAIN (ANALYZE, TIMING OFF), warm cache, first run discarded, median of the rest.
Alexander Ioffe: Why is my Whale Query 1000x Slower in Prod? Databases hate skew, each hates it differently
Chris van Eijk: PostgreSQL row-level security for SaaS: what we measured
Chris van Eijk: Go, pgx and PostgreSQL row-level security, measured
Christophe Pettus: The Patch Is Coming From Inside the House
Devrim GÜNDÜZ: PostgreSQL RPM repository meets AI with pg_statviz
Devrim GÜNDÜZ: PostgreSQL RPM repository meets AI with pg_statviz
Cornelia Biacsics: Contributions for week 40
On 7 October, the London PostgreSQL Meetup group met.
Organizers:
- Valeria Kaplan
- Chris Ellis
- Alastair Turner
Speakers:
- Elizabeth Christensen
- Alex Kasko
- Jimmy Angelakos
On 8 October the PostgreSQL England North Meetup Group. Joseph Bharath Reddy Allam delivered a talk.
Christophe Pettus: All Your GUCs in a Row: plan_cache_mode
David Wheeler: PGConf.EU Community Day: A Postgres Ecosystem Foundation?
For anyone with an interest in the long-term health and longevity of the broader ecosystem of Postgres extensions and tools, we’d like to hear your ideas and inspirations for its assurance.
Radim Marek: How TABLESAMPLE picks rows
Most exploratory questions against a large table only need a rough answer, but without an index on status, even "roughly how many shipped orders" costs a full scan. On the two-million-row orders table, Postgres has to read every single 8 kB page, all 18,085 of them (141 MB), just to count matching rows.
