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

From: Osvaldo Kussama <osvaldo(dot)kussama(at)gmail(dot)com>
To: Andre Lopes <lopes80andre(at)gmail(dot)com>
Cc: postgresql Forums <pgsql-general(at)postgresql(dot)org>
Subject: Re: How to import *.sql file to postgresql database
Date: 2010-07-18 20:11:12
Message-ID: AANLkTilThGQrmF-h5Td7myoFgrfZpexbvxrFgDbPPzBH@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

2010/7/18 Andre Lopes <lopes80andre(at)gmail(dot)com>:
> 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?
>
> Best Regards,
>

From manual [1] 24.1.1. Restoring the dump:
psql dbname < infile

Osvaldo
[1] http://www.postgresql.org/docs/current/interactive/backup-dump.html#BACKUP-DUMP-RESTORE

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Edoardo Panfili 2010-07-18 20:11:22 Re: How to import *.sql file to postgresql database
Previous Message Szymon Guz 2010-07-18 20:10:58 Re: How to import *.sql file to postgresql database