First of all, thank you very much. I changed TRUNCATE to DELETE FROM and my problem as been fixed.
Is there any way to override that behavior? I know you can explicitly lock tables, can you explicitly unlock tables? Just to be clear, once I run a TRUNCATE command inside an SP, that table that it acts upon will have an access exclusive lock on it until the SP is finished? ---------------------------(end of broadcast)--------------------------- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq