# Access Postgre Sql

**URL:** <https://rubytalk.org/t/access-postgre-sql/60984>\
**Category:** ruby-talk\
**Created:** [29 November 2010 14:05 UTC](https://rubytalk.org/t/access-postgre-sql/60984 "2010-11-29T14:05:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jagan\_Jacob](https://avatars.discourse-cdn.com/v4/letter/j/d6d6ee/32.png) [@Jagan\_Jacob](https://rubytalk.org/u/Jagan_Jacob)\
**Post date:** [29 November 2010 14:05 UTC](https://rubytalk.org/t/access-postgre-sql/60984/1 "2010-11-29T14:05:27Z")

</div>

I am new to this language

I am having a text file containg some data.I want to populate it into  
postgre sql using ruby(not ruby on rails).What are the steps to do.

I googled and tried to follow the instruction like install dbi etc but  
cant run properly.

Please give step by step procedure including where should i install the  
postgre sql,how to get dbi of "require 'dbi'" etc

Please help  
Thanks a lot

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

---

<div class="post-metadata">

**Author:** ![Daniel3](https://avatars.discourse-cdn.com/v4/letter/d/a4c791/32.png) [@Daniel3](https://rubytalk.org/u/Daniel3)\
**Post date:** [29 November 2010 20:36 UTC](https://rubytalk.org/t/access-postgre-sql/60984/2 "2010-11-29T20:36:42Z")

</div>

I usually use sequel, but there are many other gems to access  
relational databases.

Daniel,

Excerpts from Jagan Jacob's message of Mon Nov 29 11:05:27 -0300 2010:

> **···**
>
> > I am new to this language
> > 
> > I am having a text file containg some data.I want to populate it into  
> > postgre sql using ruby(not ruby on rails).What are the steps to do.
> > 
> > I googled and tried to follow the instruction like install dbi etc but  
> > cant run properly.
> > 
> > Please give step by step procedure including where should i install the  
> > postgre sql,how to get dbi of "require 'dbi'" etc
> > 
> > Please help  
> > Thanks a lot
