Re: Is there a way to backup Postgres via SQL commands?

Поиск
Список
Период
Сортировка
От Raymond O'Donnell
Тема Re: Is there a way to backup Postgres via SQL commands?
Дата
Msg-id 4C162917.7020808@iol.ie
обсуждение исходный текст
Ответ на Is there a way to backup Postgres via SQL commands?  (Frank Church <voipfc@googlemail.com>)
Ответы Re: Is there a way to backup Postgres via SQL commands?  (Craig Ringer <craig@postnewspapers.com.au>)
Список pgsql-general
On 14/06/2010 12:28, Frank Church wrote:
> Are there SQL commands that can do a backup over a client connection,
> rather than from the command line like pgsql etc?

No, not that I'm aware of.

> By that I mean some kind of SELECT commands that can retrieve the
> database's content as SQL commands that can be replayed to a server to
> restore it, rather than something that saves directly to file, or
> passes it through a pipe?

What exactly are you trying to do? If you're building database backup
functionality into an application, you're better off just spawning a
sub-process with pg_dump.

Ray.

--
Raymond O'Donnell :: Galway :: Ireland
rod@iol.ie

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

Предыдущее
От: Alban Hertroys
Дата:
Сообщение: Re: Is there a way to backup Postgres via SQL commands?
Следующее
От: Jeff Amiel
Дата:
Сообщение: Advice on contingency plan for DAS array with separate local WAL drives