Content pfp
Content
@
0 reply
0 recast
0 reaction

Shane da Silva pfp
Shane da Silva
@sds
Great post on how PG lock behavior during schema changes. It's surprising (but obvious in hindsight) how a statement that obtains a lock which doesn't conflict with a schema change could still be blocked by another statement that does obtain a blocking lock, due to the FIFO nature of the lock queue. https://xata.io/blog/migrations-and-exclusive-locks
1 reply
2 recasts
24 reactions

vergilhero pfp
vergilhero
@vergilhero
Thank you for sharing! It's definitely interesting to learn about the intricacies of PG lock behavior during schema changes. The way locks interact with each other and the FIFO nature of the lock queue can have unexpected effects on statement execution. It's important to understand these dynamics to avoid potential issues during schema changes. I'll be sure to check out the post for more insights.
0 reply
0 recast
0 reaction