| From: | Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> |
|---|---|
| To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
| Cc: | Andrew Dunstan <andrew(at)dunslane(dot)net>, Andres Freund <andres(at)anarazel(dot)de>, Noah Misch <noah(at)leadboat(dot)com>, pgsql-hackers(at)postgresql(dot)org |
| Subject: | Re: pg_ctl/pg_rewind tests vs. slow AIX buildfarm members |
| Date: | 2015-09-03 20:21:14 |
| Message-ID: | 20150903202114.GG2912@alvherre.pgsql |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Tom Lane wrote:
> Andrew Dunstan <andrew(at)dunslane(dot)net> writes:
> > There is no equivalent of execl, nor a cmd.exe exquivalent of the
> > shell's exec. But surely the equivalent of the fork/execl you're doing
> > here would be a simple CreateProcess(). I don't see why you need a shell
> > in the middle on Windows at all.
>
> The problem is to get the output redirection to work. I imagine it could
> be rewritten without involving the shell, but it'd be less than trivial
> (or at least, I'm not going to do it).
In the CreateProcess model, I think you can use startupInfo.hStdOutput,
see
https://msdn.microsoft.com/en-us/library/windows/desktop/ms686331%28v=vs.85%29.aspx
https://msdn.microsoft.com/en-us/library/windows/desktop/ms682425%28v=vs.85%29.aspx
--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Robert Haas | 2015-09-03 20:21:55 | Re: Autonomous Transaction is back |
| Previous Message | Pavel Stehule | 2015-09-03 20:14:02 | Re: On-demand running query plans using auto_explain and signals |