Re: Postgres: Starting Server in background mode

From: Craig Ringer <craig(at)postnewspapers(dot)com(dot)au>
To: Tino Wildenhain <tino(at)wildenhain(dot)de>
Cc: CM J <postgres(dot)newbie(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Postgres: Starting Server in background mode
Date: 2009-04-10 02:18:17
Message-ID: 49DEAC69.8020409@postnewspapers.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tino Wildenhain wrote:

> The problem here is, Postgres is not an embedded database but really a
> database management system. Therefore trying to bundle it with a desktop
> application will usually cause more headaches. I'd suggest installing
> Postgres as central service

Note that Windows is designed to allow applications to create services,
start them, stop them, etc. You should have *NO* problems having your
application install PostgreSQL as a service, and start/stop it on
demand. You can do this through the command line (net.exe), the Services
snap-in (services.msc), or via Win32 API calls from your application.

Doing anything else is trying to re-invent the Windows service mechanism
- poorly - and is really just NOT a good idea.

--
Craig Ringer

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Scott Marlowe 2009-04-10 02:27:02 Re: Postgres: Starting Server in background mode
Previous Message ljb 2009-04-10 02:04:10 Re: Anyone testing changes to libpq/bcc32.mak?