Re: Postgres: Starting Server in background mode
От | Scott Marlowe |
---|---|
Тема | Re: Postgres: Starting Server in background mode |
Дата | |
Msg-id | dcc563d10904091927u4564ca9qb40715e150aa8ac4@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Postgres: Starting Server in background mode (Craig Ringer <craig@postnewspapers.com.au>) |
Список | pgsql-general |
On Thu, Apr 9, 2009 at 8:18 PM, Craig Ringer <craig@postnewspapers.com.au> wrote: > 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. Note that if one is going to do this, it's probably a good idea to install your private pgsql into a different default directory and have it answer on a different port than the 5432 one, so that if the user has or will install their own pgsql version your customer version won't get in the way.
В списке pgsql-general по дате отправления: