Re: startup Postgres on NT

From: Fred Yankowski <fred(at)ontosys(dot)com>
To: "Jarungwit J(dot)" <microx_2000(at)yahoo(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: startup Postgres on NT
Date: 2001-02-12 15:23:05
Message-ID: 20010212092305.A99075@enteract.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Feb 12, 2001 at 12:56:04PM +0700, Jarungwit J. wrote:
> Now I can start ipc-daemon as NT Service by using invoker methood. But
> when I start postmaster with invoker method, it shows error:
> Error 0203: The sytem could not find the environment option that was
> entered.
> Note that I can start postmaster in cygwin-shell. Any suggestion?

Make sure that the environment variables for whatever NT user the
postmaster service is running under are set to everything that
postmaster needs. Consider PGDATA, PGHOST, and PATH in particular.
Note that the .bash_profile and .bashrc files won't apply to the
service since it isn't run in the context of bash/sh. The Cygwin
/usr/bin (or /bin) folder should be in PATH too so that
postmaster/postgres can call system() on utilities like 'rm' and 'cp'.

--
Fred Yankowski fred(at)OntoSys(dot)com tel: +1.630.879.1312
Principal Consultant www.OntoSys.com fax: +1.630.879.1370
OntoSys, Inc 38W242 Deerpath Rd, Batavia, IL 60510, USA

In response to

Browse pgsql-general by date

  From Date Subject
Next Message K. Ari Krupnikov 2001-02-12 15:33:24 performance - self-joins vs. subqueries
Previous Message Tom Lane 2001-02-12 15:22:30 Re: transaction safety