I'm trying to take a look at locks that are happening on specific tables in my PostgreSQL database.
I see there's a table called pg_locks
select * from pg_locks;
Which seems to give me a bunch of columns but is it possible to find the relation because I see one of the columns is the relation oid.
What table must I link that to to get the relation name?