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

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: win32 service code


  • From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
  • To: Magnus Hagander <mha(at)sollentuna(dot)net>
  • Cc: PgSql-Win32 <pgsql-hackers-win32(at)postgresql(dot)org>
  • Subject: Re: win32 service code
  • Date: Thu, 27 May 2004 16:11:55 -0400 (EDT)
  • Message-id: <200405272011(dot)i4RKBtC10138(at)candle(dot)pha(dot)pa(dot)us>

How would this interact with pg_ctl?  I would hate to have to tell
people to use a different command to start/stop the postmaster depending
on what platform they use.  :-(


FYI, I like #2.

---------------------------------------------------------------------------

Magnus Hagander wrote:
> Hi!
> 
> Last I spoke with Claudio, he was still waiting for some reactions from
> others than me on how we want the service code. So I figured I'd post a
> recap of the options we have. I've added some advantages/disadvantages,
> but those are my thoughts only. There are sure to be others. 
> 
> 
> 1) Separate binary "pgservice.exe" that will CreateProcess() the
> postmaster.exe.
> Advantages: Zero impact on postmaster code. Simple to do.
> Disadvantages: Adds a platform-specific binary.
> 
> 2) Include in postmaster doing an extra CreateProcess().
> Advantages: No extra binary. Low impact on postmaster code.
> Disadvantages: Two postmaster.exe:s. running (confusing? overhead?)
> 
> 3) Include in postmaster but running on a separate thread (not process
> as (2))
> Advantages: No extra binary. No extra process. Most integration.
> Disadvantages: Probably larger impact on postmaster code.
> 
> 
> As said, I've probably missed some in adv/disadv, but I think I got all
> our options.
> 
> Thoughts?
> 
> 
> //Magnus
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 8: explain analyze is your friend
> 

-- 
  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



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group