Enable πŸ–– DB branching and ⚑️ thin cloning for *any* Postgres database and empower DB testing in CI/CD. GitHub β­οΈπŸ‘ https://xitter.cf/t.co/onPmk55KZs

California, USA
Joined August 2020
DBLab by Postgres.AI πŸ’™πŸ’› retweeted
1
6
1,528
DBLab by Postgres.AI πŸ’™πŸ’› retweeted
DBLab Engine 4.2 is out! Main thing: you can now pg_upgrade a clone with just one click or in CLI call: ==> dblab clone upgrade my-clone => automation stops the clone, "pg_upgrade --link" runs in place, then clone comes back on a new Postgres major version. As usual, prod and every other clone untouched. Didn't like the result? ==> dblab clone reset No more excuses to avoid full-fledged testing before production Postgres gets upgraded. Also in 4.2: - paste a source URL, DBLab figures out provider, image, databases, settings - branches and snapshots expire on policy (off by default) - secrets from env vars (not plain-text in configs anymore) - clone creation ~2x faster
2
2
7
653
DBLab by Postgres.AI πŸ’™πŸ’› retweeted
traditional reminder that simple ALTER TABLE that felt instant on your laptop can put your production Postgres down it needs to be cooked properly in production – use lock_timeout and retries postgres.ai/blog/20210923-ze…
3
24
1,520
DBLab by Postgres.AI πŸ’™πŸ’› retweeted
PgQue got a website with docs – pgque.dev
5
32
220
14,219
DBLab by Postgres.AI πŸ’™πŸ’› retweeted
Working on this is a lot of fun. Here I shared how it all started, what original PgQ already has and what didn't, and what v0.2 brings (RC1 stamped yesterday)
New episode: "PgQue" Nik and Michael discuss Nik's new project PgQue, a descendent of Skype's PgQ, for running queue-like workloads in Postgres. 🎧 postgres.fm/episodes/pgque πŸ“Ί youtu.be/bBNcR14Ts4U
1
3
704
DBLab by Postgres.AI πŸ’™πŸ’› retweeted
Precise (not sampled) wait even analysis is something I didn't expect to have for Postgres - but here we go Being able to zoom into concrete millisecond (!) and see the exact chain of wait events opens new possibilities for RCA, benchmarks, and performance studies links πŸ‘‡
New episode: "pg_wait_tracer" Nik and Michael are joined by Dmitry Fomin to discuss his new tool pg_wait_tracer, as well as changes to core that would allow wait event tracing with lower overhead (and on managed services). 🎧 postgres.fm/episodes/pg_wait… πŸ“Ί youtu.be/efY85jwfcQ8
3
3
1
14
3,311
DBLab by Postgres.AI πŸ’™πŸ’› retweeted
New episode: "pg_wait_tracer" Nik and Michael are joined by Dmitry Fomin to discuss his new tool pg_wait_tracer, as well as changes to core that would allow wait event tracing with lower overhead (and on managed services). 🎧 postgres.fm/episodes/pg_wait… πŸ“Ί youtu.be/efY85jwfcQ8
2
1
7
2,794
DBLab by Postgres.AI πŸ’™πŸ’› retweeted
PgQue v0.1.0 is out. PgQ -- the Postgres queue system built at Skype 20 years ago for 1B-user-scale workloads -- repackaged for the managed-Postgres era. One SQL file. No C extension. No external daemon. pg_cron to tick. Why bother reviving a 2007 architecture? Every major Postgres queue in production today uses some flavor of SKIP LOCKED + UPDATE/DELETE. It works under light load. When you have more data and higher load, it degrades predictably. Then you get posts like these: - Brandur at Heroku, 2015: 60k job backlog in one hour from a single open transaction - PlanetScale, 2026: death spiral at 800 jobs/sec - River issue #59, awa issue #169 and so on, Oban's partitioning work, PGMQ's autovacuum tuning guide and duct-taping with pg_partman The core issue is how Postgres MVCC is implemented and how we deal with it. Dead tuples in the hot path, xmin horizon pinned, vacuum falling behind, query performance quickly degrades. This happens every time you run pg_dump, execute an analytical query, or have a lagging/unused logical replication slot. PgQ solved this in 2007 with snapshot-based batching and TRUNCATE rotation -- zero dead tuples in the event path, by design. But PgQ needed a C extension and an external daemon. Which means it doesn't run on RDS, Aurora, Cloud SQL, AlloyDB, Supabase, or Neon -- i.e., where most Postgres lives now. PgQue closes that gap. πŸ’Ž Pure SQL + PL/pgSQL (PgQ engine) πŸ‘©β€πŸ’» \i sql/pgque.sql -- you're done πŸ•‘ pg_cron replaces pgqd (optional, recommended) πŸ’» Python, Go, TypeScript client examples shipped πŸ’™ Apache 2.0 Trade-off: end-to-end event delivery latency is up to a second, it depends on ticking frequency. If you need sub-3ms job dispatch, use River, Oban, or graphile-worker (and avoid anything that blocks xmin horizon). If you need high-throughput event streaming with fan-out inside Postgres -- Kafka-shaped, without Kafka and dealing with transactional outbox implementation -- this is the right shape of tool. Kudos to Marko Kreen and Skype engineers who implemented this decades ago, for the original PgQ, and to Alexander Kukushkin whose recent "Rediscovering PgQ" talk brought this quiet corner of the Postgres ecosystem back into view. Stars, issues, PRs, and honest criticism all welcome. Link πŸ‘‡
6
51
6
350
35,030
DBLab by Postgres.AI πŸ’™πŸ’› retweeted
Stop giving your AI agents access to your production database. Here is the setup that fixes it. I was using @neondatabase for disposable Postgres environments. Great DX, branching, one-click resets. Then traffic grew, costs followed, and even dev environments got expensive. Paying for a production-grade managed service just to run experiments started to feel hard to justify. So I went looking for an open source alternative and found @Database_Lab. It takes any Postgres database and lets you spin up isolated clones, branches, and snapshots from it. Reset to any point with one click. Rerun migrations. Break things freely. Zero risk to anything real. The detail that matters most: data flows one direction only. From Postgres into Database Lab, never the other way. Your source database stays completely untouchable. AI agents are getting broader infrastructure access every week. Giving them a safe, isolated clone instead of production access is basic risk management at this point.
3
1
1
2
233
DBLab by Postgres.AI πŸ’™πŸ’› retweeted
For fun, I rewrote psql in Rust and integrated it with AI meet "rpg" -- an experimental CLI maybe, at some point, it will bring ideas to psql itself thoughts? link in the 1st comment
6
6
1
39
4,586
DBLab by Postgres.AI πŸ’™πŸ’› retweeted
How moving one word can speed up a query 10–50x postgres.ai/blog/20260311-no…
2
16
1
89
6,851
DBLab by Postgres.AI πŸ’™πŸ’› retweeted
pg_ash v1.3 released -- Active Session History for Postgres, pure SQL. New in 1.3: - pg_cron now optional -- works with external schedulers - set_debug_logging() -- RAISE LOG per sampled session - pgss-dependent functions fail fast with clear errors - Azure Flexible Server compatibility - PG14-18 tested Install: \i sql/ash-install.sql No extensions, no restart. Works on RDS, Cloud SQL, AlloyDB, Supabase, etc.
2
16
52
3,047
DBLab by Postgres.AI πŸ’™πŸ’› retweeted
pg_ash is out Postgres has no session history. When something was slow an hour ago, there's nothing to look at. pg_ash fixes that -- pure SQL, one file install, works on RDS/Cloud SQL/Supabase/self-hosted, anywhere where you have pg_stat_statements and pg_cron. No extension, no restarts, no provider approval. Just \i one file.
10
36
3
173
15,340
DBLab by Postgres.AI πŸ’™πŸ’› retweeted
New episode: "Tens of TB per hour" Nik talks Michael through a recent benchmark he worked with Maxim Boguk on, to see how quickly they could provision a replica. 🎧 postgres.fm/episodes/tens-of… πŸ“Ί youtu.be/ff-goIbd-Zk
4
1
14
7,691
DBLab by Postgres.AI πŸ’™πŸ’› retweeted
I like how easy it is now to get the new @postgres_ai copilot for any @PostgreSQL database: One-click deployment in three modes – PaaS, BYOC, BYOM Easy access to dashboards at xxxxxx.pgai.watch by default – in case you need to dive into all the details "Resolve in Cursor" for issues that can be solved via code changes (or you can use Claude Code, Codex, etc.)
2
16
1,886
DBLab by Postgres.AI πŸ’™πŸ’› retweeted
Your Postgres TODO list has been the same for 6 months: β–‘ Drop unused indexes β–‘ Eliminate bloat β–‘ Tune autovacuum β–‘ Set up proper monitoring Today we're launching @postgres_ai – automated Postgres maintenance so your team can focus on shipping. PR/MR-based approvals. Zero-downtime operations. Built by the team with deep Postgres expertise, trusted by GitLab, Supabase, Gadget, and many others. Early access: postgres.ai
Stop fighting Postgres issues. Keep shipping features. Introducing new @postgres_ai, it takes care of your Postgres. Removes unused and redundant indexes, mitigates bloat β€” all automated with PR-based approvals for full control. Early access: postgres.ai
1
10
95
13,430
DBLab by Postgres.AI πŸ’™πŸ’› retweeted
this repo deserves more stars github.com/postgres-ai/postg… gitlab.com/postgres-ai/postg… we aim to have the most detailed and advanced monitoring for Postgres -- and it's FOSS because it's just a foundation of something bigger (after 20 years with Postgres, next month will be the most exciting announcement of my career)
postgres_ai monitoring 0.11: VictoriaMetrics, lots of optimizations, new dashboards for table and index analysis, and more github.com/postgres-ai/postg…
1
11
92
15,147