# Inserting CSV into postgres

**URL:** <https://forum.elixirforum.com/t/inserting-csv-into-postgres/3606>\
**Category:** Questions\
**Tags:** ecto, streams\
**Created:** [February 8, 2017, 4:58pm UTC](https://forum.elixirforum.com/t/inserting-csv-into-postgres/3606 "2017-02-08T16:58:42Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![michalmuskala](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/michalmuskala/32/20288_2.png) [@michalmuskala](https://forum.elixirforum.com/u/michalmuskala)\
**Post date:** [February 11, 2017, 3:46pm UTC](https://forum.elixirforum.com/t/inserting-csv-into-postgres/3606/10 "2017-02-11T15:46:20Z")

</div>

`Task.async_stream` returns a lazy stream - it won’t be executed unless you consume it. This can be done with `Stream.run` if you don’t care for results or any of the functions working on enumerables in an eager way if you do care about return values (most notably from the `Enum` module).

---

_[View the full topic](https://forum.elixirforum.com/t/inserting-csv-into-postgres/3606)._
