Re: Postgres: Starting Server in background mode - Mailing list pgsql-general

From Craig Ringer
Subject Re: Postgres: Starting Server in background mode
Date
Msg-id 49DEAC69.8020409@postnewspapers.com.au
Whole thread Raw
In response to Re: Postgres: Starting Server in background mode  (Tino Wildenhain <tino@wildenhain.de>)
Responses Re: Postgres: Starting Server in background mode
List 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

pgsql-general by date:

Previous
From: Bryan Murphy
Date:
Subject: Re: Minimizing Recovery Time (wal replication)
Next
From: ljb
Date:
Subject: Re: Anyone testing changes to libpq/bcc32.mak?