TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Why we spent the last month eliminating PostgreSQL subtransactions

178 pointsby giacagliaover 3 years ago

5 comments

gshulegaardover 3 years ago
Every once in awhile I find an article that is so well written I feel like it walks me through a complex technical situation like a layman while also expanding my understanding of a tool I use everyday in a meaningful way. This is definitely one of those and I just want thank the author(s) for taking the time to write this up. It was interesting and enlightening.
lixtraover 3 years ago
&gt; There was a long-running transaction, usually relating to PostgreSQL&#x27;s autovacuuming, during the time. The stalls stopped quickly after the transaction ended.<p>What is about the other end? Why does vacuum need to be a long running transaction and cannot be cut into shorter transactions ?
评论 #28743069 未加载
xeromalover 3 years ago
That was a fun read. Thanks for sharing!
seg_lolover 3 years ago
My take away is that they were testing the limits of PostgreSQL capabilities, and then reverted the change in a mad dash.<p>That this would have been an awesome opportunity for gitlab to show how OSS they are and fund a PostgreSQL developer to allow gitlab to design these boundary pushing designs.
评论 #28735756 未加载
juliangambleover 3 years ago
Definitely a fun article.<p>This was the key takeaway for me.<p><pre><code> SubtransControlLock indicates that the query is waiting for PostgreSQL to load subtransaction data from disk into shared memory. </code></pre> I felt the article fell down for two reasons: (1) It didn&#x27;t really articulate the need for transactions in the first place (database integrity). Nor did it discuss the implications on integrity with this change.<p>(2) It didn&#x27;t articulate the possibilities of other architectures (pushing to a read cache other than PostgresSQL like Cassandra).<p>I got the feeling they were really pushing PostgresSQL to its limits in their cluster with their load - and it was time to consider another design.
评论 #28733994 未加载
评论 #28733996 未加载
评论 #28734560 未加载
评论 #28734301 未加载