I don't think the processing happens in postgres at all, it's just handling the transactions and queues.