Re: Why don't dumped files parse in pgAdmin3 query editor?

Поиск
Список
Период
Сортировка
От Raymond O'Donnell
Тема Re: Why don't dumped files parse in pgAdmin3 query editor?
Дата
Msg-id 45EC38D4.2040204@iol.ie
обсуждение исходный текст
Ответ на Why don't dumped files parse in pgAdmin3 query editor?  (dlivesay@covad.net)
Список pgsql-general
On 05/03/2007 15:28, dlivesay@covad.net wrote:

> Here's something I've always wondered. When you dump a database, the dumped file
> looks like ordinary SQL, but if I load it into a query editor window and try to
> execute it, I always get syntax errors. The specific errors vary, but it always
> makes it impossible to reload the data that way.

That's because theses files contain psql-specific "backslash" commands
as well as ordinary SQL - if you look at what the errors tell you,
you'll probably see that they come from lines containing such commands.
As I understand it, the plain-text output of pg_dump is intended to be
restored via psql.

Ray.


---------------------------------------------------------------
Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland
rod@iol.ie
---------------------------------------------------------------

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

Предыдущее
От: dlivesay@covad.net
Дата:
Сообщение: Why don't dumped files parse in pgAdmin3 query editor?
Следующее
От: Raymond O'Donnell
Дата:
Сообщение: Re: Why don't dumped files parse in pgAdmin3 query editor?