On Wed, 2024-03-27 at 19:33 +0800, James Pang wrote: > below is a cascading lock and blocking issue [...], > new coming select on the table got blocked too. since only RowExclusiveLock > granted on relation, why the query select got blocked too ? just because > there is another "alter table" that's sitting in the queue before this > "select session" ? is it expected in PGv14? Yes, it must be th ACCESS EXCLUSIVE lock that is waiting in line and blocking everything else (locks have to queue). Don't run ALTER TABLE when you have long running transactions/queries. Yours, Laurenz Albe