Re: pg_dump "what if?" - Mailing list pgsql-general

From Shelby Cain
Subject Re: pg_dump "what if?"
Date
Msg-id 20040324232951.35274.qmail@web41602.mail.yahoo.com
Whole thread Raw
In response to Re: pg_dump "what if?"  (Anony Mous <A.Mous@shaw.ca>)
Responses Re: pg_dump "what if?"
Re: pg_dump "what if?"
List pgsql-general
You could spawn pg_dump via CreateProcess and call
WaitForSingleObject() on the handle that CreateProcess
returns in a worker thread.  When the Wait() function
returns, you can then call GetExitCodeProcess() on the
same handle to get the process exit code.

Just a thought.

Regards,

Shelby Cain


--- Anony Mous <A.Mous@shaw.ca> wrote:
> Thanks, but I'm calling a win32 compiled version of
> pg_dump, which runs
> asynchronously to the rest of my code (sorry I was
> vague in my first
> message).  As such, I don't see how I can use the
> return value.  My only
> other thought was to check for the existence of the
> file, which would be
> useless if the file represented an incomplete dump.
>
>

__________________________________
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html

pgsql-general by date:

Previous
From: Alan Carbutt
Date:
Subject: Adding flexibilty to queries
Next
From: Tom Lane
Date:
Subject: Re: ERROR: column "currec" does not exist while calling function with 'record' (or %rowtype% argument