Re: How to import *.sql file to postgresql database

From: Edoardo Panfili <edoardo(at)aspix(dot)it>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: How to import *.sql file to postgresql database
Date: 2010-07-18 20:11:22
Message-ID: 4C435FEA.2050801@aspix.it
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 18/07/10 22.06, Andre Lopes wrote:
> Hi,
>
> I have a DUMP file with INSERT's commands. I need to import this data to
> postgresql database with the "psql" command.
>
> How can I do this task?

I think

psql -U user_name database_name <dump_file

EDoardo

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message John Gage 2010-07-18 20:13:28 Differences between Postgres and MySql
Previous Message Osvaldo Kussama 2010-07-18 20:11:12 Re: How to import *.sql file to postgresql database