o Use a second postgres connection and a named cursor for merges etc.