select s.oid,s.relname,t.stausename,t.stasubtype
from pg_class s,pg_stat_last_operation t
where s.relname='XXXX' and t.objid=s.oid;