locks within select - Mailing list pgsql-general

From Marc Millas
Subject locks within select
Date
Msg-id CADX_1abA6Ykusa4m2WPv6wHfH1ZoCG=gZ+VJS2EFe0HaGB_1Rw@mail.gmail.com
Whole thread Raw
Responses Re: locks within select  ("David G. Johnston" <david.g.johnston@gmail.com>)
List pgsql-general
Hi,

To my understanding, a select on a table does acquire an access share lock on that table.
my question is: is there any other kind of lock that a select may acquire ?
obviously, all explicit locking schemes like select for update, etc... is out of this question scope.

I was wondering if for example, within a join, some kind of lock may be acquired so that the dataset concerned is not changed during execution ? (for example a delete then autovacuum ??)

thanks


Marc MILLAS
Senior Architect
+33607850334

pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: Why can't I have a "language sql" anonymous block?
Next
From: Marc Millas
Date:
Subject: log shipping with pg_receivewal