Richard Huxton <dev@archonet.com> writes: > Well, both cluster and vacuum full will require a lock on the table. But > they're more or less doing the same thing, so why the one should work > and the other not I don't know.
CLUSTER isn't MVCC-safe --- it'll drop rows that are committed dead even if they are potentially still visible to some open transaction. The OP has *clearly* got an open-transaction problem. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match