Re: pg_dumpall from a script

Поиск
Список
Период
Сортировка
От BladeOfLight16
Тема Re: pg_dumpall from a script
Дата
Msg-id CA+=1U=VTbZpqjVr61PMdPrx_fZL5hT0JuECEzoq77P3kOHprZA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: pg_dumpall from a script  (James Sewell <james.sewell@lisasoft.com>)
Список pgsql-general
On Tue, Oct 22, 2013 at 1:20 AM, James Sewell <james.sewell@lisasoft.com> wrote:
That looks great, but it doesn't really help with my problem unless I'm missing something (very possible!)

I need a way to backup either from SQL in PSQL (possibly \!) or from a PG/PLSQL function to a file with a name set from a :variable.

This would be triggered by a certain action in the database (applying a patch).

I don't understand. To use psql, you would have to launch it with a command line, as far as I know. If psql is a viable option for you, then you should be able to execute other commands as well. That would make a bash script a viable option. How do you intend to launch psql?

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

Предыдущее
От: James Sewell
Дата:
Сообщение: Re: pg_dumpall from a script
Следующее
От: Luca Ferrari
Дата:
Сообщение: Re: pg_dumpall from a script