On Mon, Mar 21, 2016 at 04:26:40PM +0100, Nicolas Aubert wrote: > the vacuum process is the 22510 > here is what I found in pg_locks > > > virtualtransaction | pid | mode | granted | fastpath > ------------+---------------+---------+-------+----------+--------------------+-------+--------------------------+---------+---------- > > 3/376480 | 22510 | ExclusiveLock | t | > | | | | | > 3/376480 | 22510 | ShareUpdateExclusiveLock | f | f > I'm sure there are more columns in pg_locks. What you need to find is the rows with pid of vacuum, that have granted = 'false', and see what the lock is on (the columns you ignored). Then you check what has conflicting locks on the required things. Best regards, depesz -- Sent via pgsql-admin mailing list (pgsql-admin@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin