Quantcast
Channel: What is Postgres lock behaviour when UPDATE WHERE clause does a table scan? - Database Administrators Stack Exchange
Browsing all 2 articles
Browse latest 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 all 2 articles
Browse latest View live




Latest Images