Quantcast
Channel: What is Postgres lock behaviour when UPDATE WHERE clause does a table scan? - Database Administrators Stack Exchange
Browsing latest articles
Browse All 2 View Live

Answer by Laurenz Albe for What is Postgres lock behaviour when UPDATE WHERE...

For the discussion, let's assume your execution plan looks like QUERY PLAN -------------------------- Update on mytab -> Seq Scan on mytab Filter: (id = 1)I also assume that you are using the...

View Article


What is Postgres lock behaviour when UPDATE WHERE clause does a table scan?

Say you have a large table with tens of millions of rows.You want to UPDATE large_table SET col=value WHERE col=other_value... but col is not indexed and an EXPLAIN shows that this query will perform a...

View Article

Browsing latest articles
Browse All 2 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>