ext/pgsql: pgsql_copy_from to support iterable. inspired from the Pdo\Pgsql new feature GH-15893. close GH-16124