简体   繁体   中英

PostgreSQL concurrent row update

Can someone say how PostgreSQL behaves when i'm trying to update same row but different fields at the same time (concurrently)? What transaction level it's using

When you update a row, the whole row is locked until the end of the database transaction. So the first update will block the second one, even if they modify different columns. This is independent of the transaction isolation level.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM