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

From Dave Page
Subject Re: -f option for pg_dumpall
Date
Msg-id 200701060851100000@494532763
Whole thread Raw
In response to -f option for pg_dumpall  (Dave Page <dpage@postgresql.org>)
List pgsql-hackers

> ------- Original Message -------
> From: Tom Lane <tgl@sss.pgh.pa.us>
> To: Dave Page <dpage@postgresql.org>
> Sent: 1/5/07, 10:48:17 PM
> Subject: Re: [HACKERS] -f <output file> option for pg_dumpall
>
> 
> Wouldn't it be easier/better to re-point stdout at the -f file, and not
> touch pg_dump at all?

First thing I tried, but using virtually identical code to that which we use with pg_dump it just hangs. The debugger
tellsme there's a deadlock - my best guess is that stdin/out/err of the child shell & pg_dump processes don't get
redirectedalong with their parents. I'm testing on Windows btw - dunno if *nix would be different.
 

/D


pgsql-hackers by date:

Previous
From: "Andrew Dunstan"
Date:
Subject: Re: ideas for auto-processing patches
Next
From: "Dave Page"
Date:
Subject: Re: -f option for pg_dumpall