Adding a foreign key to a big table without locking both of them
A plain ADD CONSTRAINT ... FOREIGN KEY validates every row while holding locks on the child and the parent. The NOT VALID and VALIDATE split that avoi
Tag archive
A plain ADD CONSTRAINT ... FOREIGN KEY validates every row while holding locks on the child and the parent. The NOT VALID and VALIDATE split that avoi
Measured on a 20 million row table: what a plain index build does to writes, what the concurrent build costs instead, the failure mode nobody mentions
A single idle transaction, one ALTER TABLE queued behind it, and every read on the table queued behind that. Measured, with the pg_locks output, and t
` Vehicle theft continues to be a concern for car owners around the world. While modern vehicles...
Over the past three posts, we created the foundational infrastructure, segmented the virtual network...

Distributed locking can be a lifesaver when you're juggling multiple instances of an application. You...
In the world of concurrent systems, data consistency is both a challenge and a priority. When...
Concurrency in programming allows multiple threads to execute code simultaneously, which can...

Neste artigo vamos entender como tratar modificações realizadas por usuários que se sobrescrevem, e c...

Copy-On-Write, abbreviately referred to as CoW suggests deferring the copy process until the first mo...