From: Gunnar Thielebein <gunnar_thielebein@gmx.net>
To: pgsql-cygwin@postgresql.org
Subject: setting up postgres 8.0.4-1
Date: Fri, 10 Mar 2006 12:45:53 +0100
Message-ID: <441166F1.5080507@gmx.net> (raw)
I've set up postgresql 8.0.4-1 via cygwin_setup but had some
problems registering it as service and connecting to database.
I followed exactly the Cygwin/postgresql-8.0.4.README but this did not
worked for me first.
For installing as service with cygrunsrv I had to put --env
CYGWIN=server as additional parameter
e.g.
# cygrunsrv --install postmaster --path /usr/bin/postmaster --args
"-D /srv/pgsql \
-i" --dep cygserver --termsig INT --user postgres --shutdown --env
CYGWIN=server
For initializing the superuser in the template1 database I had to put in
--user=postgres as additional parameter
(or your specified username postmaster is running with, you could
specifiy other username then loginname but this needs to be mapped in
pg_hba.conf ) to initdb
e.g.
# /usr/sbin/initdb -D /srv/pgsql --user=postgres
By the way anyone know where I can set global (not user!) environmental
variables like this server stuff in cygwin (not in windows)?
Hope someone can benefit from this.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-cygwin@postgresql.org
Cc: gunnar_thielebein@gmx.net
Subject: Re: setting up postgres 8.0.4-1
In-Reply-To: <441166F1.5080507@gmx.net>
References: <441166F1.5080507@gmx.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox