dename.go: workaround postgres transaction one cursor limitation
optimize acknowledgement format, O(n^2) to O(n)