I have many databases on the same server, all with same templates. When I execute truncate command on exceptions table in each database, it works fine and executes immediately but on database named db_edr_s1 the same truncate command on exceptions table is taking too much, approx. 5 minutes.
The version is 9.1.
Any other info needed?
SELECT * FROM pg_locks WHERE relation = 'exceptions'::regclass::oid? – dezso Feb 27 at 10:22