"Mikael Carneholm" <[EMAIL PROTECTED]> writes: > variant: CLUSTER indexname ON tablename
Hmph. Looking at the code, that should always lock the table first, so I don't see where the problem is. Would you look up the numbers for us --- exactly which relations were involved in the deadlock, and (if you can tell) which process was which? Also, what PG version is this exactly? regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 1: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your message can get through to the mailing list cleanly