The following queries
SELECT * FROM (SELECT * FROM Users) WHERE Id = 1
and
SELECT * FROM Users Where Id = 1
are equivalent. But, according to the documentation, in Serializable mode, all samples are performed in LOCK IN SHARED MODE. Does this mean that in the first example, the entire Users table will be locked in shared mode?
source
share