X-Original-To: pgsql-cygwin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id DFFEF9DC816 for ; Fri, 10 Mar 2006 07:46:02 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 47385-03 for ; Fri, 10 Mar 2006 07:46:05 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from mail.gmx.net (mail.gmx.de [213.165.64.20]) by postgresql.org (Postfix) with SMTP id 1339A9DC821 for ; Fri, 10 Mar 2006 07:45:59 -0400 (AST) Received: (qmail invoked by alias); 10 Mar 2006 11:46:01 -0000 Received: from lpzg-d9b85fc7.pool.mediaWays.net (EHLO [217.184.95.199]) [217.184.95.199] by mail.gmx.net (mp039) with SMTP; 10 Mar 2006 12:46:01 +0100 X-Authenticated: #5390967 Message-ID: <441166F1.5080507@gmx.net> Date: Fri, 10 Mar 2006 12:45:53 +0100 From: Gunnar Thielebein Reply-To: gunnar_thielebein@gmx.net, gunnar_thielebein@gmx.net User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: de-DE, de, en-us, en MIME-Version: 1.0 To: pgsql-cygwin@postgresql.org Subject: setting up postgres 8.0.4-1 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200603/1 X-Sequence-Number: 4331 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.