Re: pg_dumpall from a script

Поиск
Список
Период
Сортировка
От Luca Ferrari
Тема Re: pg_dumpall from a script
Дата
Msg-id CAKoxK+6b4kwLm7M5n-foYNgOTeRWW59e4b9r2bpv=42V1borwg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: pg_dumpall from a script  (James Sewell <james.sewell@lisasoft.com>)
Ответы Re: pg_dumpall from a script  (Adrian Klaver <adrian.klaver@gmail.com>)
Список pgsql-general
On Tue, Oct 22, 2013 at 7:20 AM, James Sewell <james.sewell@lisasoft.com> wrote:

> 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
froma :variable. 

Could it be something like this:

# \setenv myFile 'filename'
# \! pg_dump > $myFile

Unfortunately there seems to be no unsetenv command to remove the
variable within the script.


Luca


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

Предыдущее
От: BladeOfLight16
Дата:
Сообщение: Re: pg_dumpall from a script
Следующее
От: Amit Langote
Дата:
Сообщение: A client and server encoding question