On Friday, November 25, 2011 12:04:38 pm Alpha Beta wrote:
> Hi list,
> I have got two files (template1.dmp, example1.dmp) and I want to open them
> in postgresql, I tried the following commands:
> - Import *template1 *:
> * createdb -U postgres template1
> * psql -U postgres template1 < template1.dmp
> - Create the sample of the database:
> * createdb -U postgres example1
> * psql -U postgres example1 < example1.dmp
> I've got no error reported by postgres but nothing happened either.
> How should I proceed exactly? Sorry I'm a newbie with PostgreSQL :)
How where the *.dmp files created?
Also from below you might want to use -f to designate the file:
Use the file filename as the source of commands instead of reading commands
interactively. After the file is processed, psql terminates. This is in many ways
equivalent to the internal command \i.
If filename is - (hyphen), then standard input is read.
Using this option is subtly different from writing psql < filename. In
general, both will do what you expect, but using -f enables some nice features
such as error messages with line numbers. There is also a slight chance that
using this option will reduce the start-up overhead. On the other hand, the
variant using the shell's input redirection is (in theory) guaranteed to yield
exactly the same output you would have received had you entered everything by
In response to
pgsql-general by date
|Next:||From: Adrian Klaver||Date: 2011-11-25 22:42:01|
|Subject: Re: How to add conversion between LATIN1 and WIN1251 ?|
|Previous:||From: Thom Brown||Date: 2011-11-25 20:39:20|
|Subject: Re: .dmp files in postgresql|