implement select_as_list of driver/pg_libpq