WeSearch

5 PostgreSQL locking behaviors that trip people up

·8 min read · 0 reactions · 0 comments · 19 views
#database#postgresql#locking#performance#concurrency#PostgreSQL#Shinya Kato
5 PostgreSQL locking behaviors that trip people up
⚡ TL;DR · AI summary

PostgreSQL's locking behaviors can lead to unexpected conflicts and performance issues. The article discusses five specific locking behaviors that can cause queries to take longer than anticipated or even result in outages. Understanding these behaviors is crucial for database administrators to mitigate potential problems.

Key facts
Original article
DEV.to (Top)
Read full at DEV.to (Top) →
Opening excerpt (first ~120 words) tap to expand

try { if(localStorage) { let currentUser = localStorage.getItem('current_user'); if (currentUser) { currentUser = JSON.parse(currentUser); if (currentUser.id === 2629632) { document.getElementById('article-show-container').classList.add('current-user-is-article-author'); } } } } catch (e) { console.error(e); } Shinya Kato Posted on May 26 5 PostgreSQL locking behaviors that trip people up #database #postgres Introduction PostgreSQL uses MVCC (Multi-Version Concurrency Control) for concurrency control: reads never block writes, and writes never block reads. Its locking system has 8 table-level lock modes and 4 row-level lock modes, and the conflict tables in the documentation tell you exactly which lock modes conflict with which.

Excerpt limited to ~120 words for fair-use compliance. The full article is at DEV.to (Top).

Anonymous · no account needed
Share 𝕏 Facebook Reddit LinkedIn Threads WhatsApp Bluesky Mastodon Email

Discussion

0 comments

More from DEV.to (Top)