Re: -f option for pg_dumpall - Mailing list pgsql-hackers

From Andreas Pflug
Subject Re: -f option for pg_dumpall
Date
Msg-id 459E8FF9.3090900@pse-consulting.de
Whole thread Raw
In response to -f option for pg_dumpall  (Dave Page <dpage@postgresql.org>)
List pgsql-hackers
Dave Page wrote:
> In pgAdmin we use pg_dump's -f option to write backup files. The IO
> streams are redirected to display status and errors etc. in the GUI.
>
> In order to enhance the interface to allow backup of entire clusters as
> well as role and tablespace definitions, we need to be able to get
> pg_dumpall to write it's output directly to a file in the same way,
> because we cannot redirect the child pg_dump IO streams (which also
> means we may miss errors, but I need to think about that some more).
>
> As far as I can see, adding a -f option to pg_dumpall should be straight
> forward, the only issue being that we'd need to pass pg_dump an
> additional (undocumented?) option to tell it to append to the output
> file instead of writing it as normal.
>
> Any thoughts or better ideas?
>   
Use pgAdmin's "create script" funcion on the server.

Regards,
Andreas


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Tabs or Spaces
Next
From: Ron Mayer
Date:
Subject: Re: InitPostgres and flatfiles question