Skip site navigation (1) Skip section navigation (2)

Re: win2k, service, pg_ctl, popen, etc

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Claudio Natoli <claudio(dot)natoli(at)memetrics(dot)com>
Cc: "'Magnus Hagander'" <mha(at)sollentuna(dot)net>,pgsql-hackers-win32(at)postgresql(dot)org
Subject: Re: win2k, service, pg_ctl, popen, etc
Date: 2004-07-22 11:47:03
Message-ID: 200407221147.i6MBl3L23158@candle.pha.pa.us (view raw or flat)
Thread:
Lists: pgsql-hackers-win32
Claudio Natoli wrote:
> 
> > It all happens in exec.c.  The test is simple in Unix.  If it isn't
> > simple in Win32, then we need to work harder to make it happen.
> 
> Are we amenable to replacing this popen call with one to CreateProcess with
> i/o handles redirected (as per the STARTUPINFO argument), or do we want to
> concentrate on a common *nix/win32 solution?

I think CreateProcess() is fine.  I can't think of another way to do it.
At least it will be isolated in exec.c.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman(at)candle(dot)pha(dot)pa(dot)us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

In response to

pgsql-hackers-win32 by date

Next:From: Alexander CohenDate: 2004-07-23 16:32:53
Subject: postgresql.conf
Previous:From: Darko PrenosilDate: 2004-07-22 09:42:09
Subject: Re: postgres win32 sources

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group