I sometimes see messages like
Process 12990 waits for ExclusiveLock on tuple (889,66) of relation 17720 of database 17607; blocked by process 12992.
So of course the ‘process’ part is quite clear, but I don’t know how to correlate between the relation ID and a human readable name. I also don’t really know what to make of the tuple bit.
Anyone know how to read these messages and how to glean useful data from them?
Thanks!
You can look this up the system tables : the one of interest here is
pg_class.Doing a query like
or rather
might shed light on the locks.