Although when I try this:
select pg_class.relname,pg_locks.* from pg_class,pg_locks wherepg_class.relfilenode=pg_locks.relation;
There are many rows!
How can I get rid of these open locks?