Unix Technical Forum

HELP FOR LOADING a .psql file (same question again but explained neatly)

This is a discussion on HELP FOR LOADING a .psql file (same question again but explained neatly) within the Pgsql General forums, part of the PostgreSQL category; --> hello i am new to psql or any database stuff. i have downloaded an .psql file from internet and ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 12:21 AM
akshay bhat
 
Posts: n/a
Default HELP FOR LOADING a .psql file (same question again but explained neatly)

hello i am new to psql or any database stuff.
i have downloaded an .psql file from internet and wish to open it and see
the data inside.
i am working on windows xp and have installed the software successfully.
please help i am my wits end.
it is huge file 800mb
and is supposed to contain a database.
the question is how to load it?

it was downloaded from this link http://conceptnet.media.mit.edu/
the description says
The ConceptNet 3
database<http://conceptnet.media.mit.edu/conceptnet-2007-09-25.tar.gz>,
as a PostgreSQL input file. You will need to be running a PostgreSQL server
to install ConceptNet 3.

how do i load it?
thanks a lot

--
akshay uday bhat.
t.y.c.e.
department of chemical engineering
university institute of chemical technology
mumbai India

On action alone be thy interest,
Never on its fruits.
Let not the fruits of action be thy motive,
Nor be thy attachment to inaction.

Ask and it shall be given to you; seek and you shall find; knock and it
shall be opened to you

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 12:21 AM
Ranbeer Makin
 
Posts: n/a
Default Re: HELP FOR LOADING a .psql file (same question again but explained neatly)

On the postgres command prompt you can use "/i filename" ... try if it
works....

Cheers


On Thu, Feb 28, 2008 at 9:07 AM, akshay bhat <akshayubhat@gmail.com> wrote:

> hello i am new to psql or any database stuff.
> i have downloaded an .psql file from internet and wish to open it and see
> the data inside.
> i am working on windows xp and have installed the software successfully.
> please help i am my wits end.
> it is huge file 800mb
> and is supposed to contain a database.
> the question is how to load it?
>
> it was downloaded from this link http://conceptnet.media.mit.edu/
> the description says
> The ConceptNet 3 database<http://conceptnet.media.mit.edu/conceptnet-2007-09-25.tar.gz>,
> as a PostgreSQL input file. You will need to be running a PostgreSQL server
> to install ConceptNet 3.
>
> how do i load it?
> thanks a lot
>
> --
> akshay uday bhat.
> t.y.c.e.
> department of chemical engineering
> university institute of chemical technology
> mumbai India
>
> On action alone be thy interest,
> Never on its fruits.
> Let not the fruits of action be thy motive,
> Nor be thy attachment to inaction.
>
> Ask and it shall be given to you; seek and you shall find; knock and it
> shall be opened to you


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-10-2008, 12:21 AM
Richard Huxton
 
Posts: n/a
Default Re: HELP FOR LOADING a .psql file (same question againbut explained neatly)

akshay bhat wrote:
> hello i am new to psql or any database stuff.
> i have downloaded an .psql file from internet and wish to open it and see
> the data inside.
> i am working on windows xp and have installed the software successfully.
> please help i am my wits end.


So what have you tried so far?
What went wrong?
What error messages did you get?
Does this ".psql" file create the database or does it expect you to load
it into an existing database?

--
Richard Huxton
Archonet Ltd

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-10-2008, 12:21 AM
Colin Wetherbee
 
Posts: n/a
Default Re: HELP FOR LOADING a .psql file (same question againbut explained neatly)

akshay bhat wrote:
> hello i am new to psql or any database stuff.
> i have downloaded an .psql file from internet and wish to open it and
> see the data inside.
> i am working on windows xp and have installed the software successfully.
> please help i am my wits end.
> it is huge file 800mb
> and is supposed to contain a database.
> the question is how to load it?
>
> it was downloaded from this link http://conceptnet.media.mit.edu/
> the description says
> The ConceptNet 3 database
> <http://conceptnet.media.mit.edu/conceptnet-2007-09-25.tar.gz>, as a
> PostgreSQL input file. You will need to be running a PostgreSQL server
> to install ConceptNet 3.
>
> how do i load it?


It was a 40-second download, so I grabbed it.

It looks like you need to create a database and then load this .psql
file into it. It contains all your CREATE TABLE statements and
everything else.

Once you get your database set up appropriately, this command should do
the trick:

psql -d <your_database_name> -f conceptnet-2007-09-25.psql

Colin

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:20 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com