Browsing index pages (2 articles)
↧
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 ArticleAnswer 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
Browsing index pages (2 articles)