Add bulk export function to postgresql_adapter