core: Fix Postgres messagesNewerThan wrong buffer