No, you should lock the table.
I mean that you can select or insert into that table even if a transaction is running.
---------------------------(end of broadcast)--------------------------- TIP 5: Have you checked our extensive FAQ?
http://www.postgresql.org/docs/faqs/FAQ.html