Re: backup postgres database

Поиск
Список
Период
Сортировка
От Martín Marqués
Тема Re: backup postgres database
Дата
Msg-id 20020313220401.82428FCA2@bugs.unl.edu.ar
обсуждение исходный текст
Ответ на Re: backup postgres database  (Frank Finner <postgresql@finner.de>)
Ответы Re: backup postgres database  (Frank Finner <frank@finner.de>)
Список pgsql-php
On Mié 13 Mar 2002 15:51, you wrote:
> Hi,
>
> pg_dump and psql are your friends.
>
> Dump the database with pg_dump, take the file and insert it into psql
> on the other machine. Details are covered in the manpages of these
> programs.
>
> Crude (without options): pg_dump your_db > your_db.dump
>                          psql < your_db.dump

This will almost always give an error (even though lots of docs have this
sintaxis). That's because you didn't tell psql which database to connect to,
so he'll try to connect to a database with the name of the user (in my case,
that would be martin, or postgres in the case of administration duties).

My 2 cents

--
Porqué usar una base de datos relacional cualquiera,
si podés usar PostgreSQL?
-----------------------------------------------------------------
Martín Marqués                  |        mmarques@unl.edu.ar
Programador, Administrador, DBA |       Centro de Telematica
                       Universidad Nacional
                            del Litoral
-----------------------------------------------------------------

В списке pgsql-php по дате отправления:

Предыдущее
От: Martín Marqués
Дата:
Сообщение: Re: backup postgres database
Следующее
От: Chris
Дата:
Сообщение: Re: backup postgres database