Use the pgoutput plugin to process huge transactions.