Re: postgres import - Mailing list pgsql-general

From Albe Laurenz
Subject Re: postgres import
Date
Msg-id 52EF20B2E3209443BC37736D00C3C1380B31A578@EXADV1.host.magwien.gv.at
Whole thread Raw
In response to postgres import  (Antonios Katsikadamos <antonioskatsikadamos@yahoo.com>)
Responses Re: postgres import
List pgsql-general
> I have a little problem. I have an .sql file (  db dump  )
> and i want to import it to postgres on linux.
>
> Does anyone know how i can do it?

You feed it to the command line interface psql.

Example:
psql -h host -p port -d database -U user <dump.sql

Yours,
Laurenz Albe

pgsql-general by date:

Previous
From: Antonios Katsikadamos
Date:
Subject: postgres import
Next
From: Tim Tassonis
Date:
Subject: Re: WAL Archiving under Windows