Re: select locks table for updates

From: Alexander Shelemin <shelemin(at)gmail(dot)com>
To: Michel SALAIS <msalais(at)msym(dot)fr>
Cc: Yambu <hyambu(at)gmail(dot)com>, Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: select locks table for updates
Date: 2020-11-19 10:27:46
Message-ID: CABokcfWJ58F+VQzOyTsjVz7a2owOpG+KGp9LhsKxbBmsd2jcCw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

That depends on transaction isolation level. By default sql server doesn't
use MVCC, so selects need shared locks. It's easily changed, though.

On Thu, 19 Nov 2020, 11:20 Michel SALAIS, <msalais(at)msym(dot)fr> wrote:

> No! Not in PostgreSQL.
>
> However it is true for SQL Server.
>
>
>
> *Michel SALAIS*
>
> *De :* Yambu <hyambu(at)gmail(dot)com>
> *Envoyé :* jeudi 19 novembre 2020 11:07
> *À :* Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org>
> *Objet :* select locks table for updates
>
>
>
> Hi
>
>
>
> Does a select lock tables for updates?
>

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Yambu 2020-11-19 20:38:42 Logical replication
Previous Message Michel SALAIS 2020-11-19 10:19:59 RE: select locks table for updates