From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 51574 invoked by alias); 29 Oct 2017 20:38:44 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 51565 invoked by uid 89); 29 Oct 2017 20:38:43 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_PASS,T_TVD_MIME_NO_HEADERS autolearn=ham version=3.3.2 spammy=impatient, rcd, professional X-HELO: loire.is.ed.ac.uk Received: from loire.is.ed.ac.uk (HELO loire.is.ed.ac.uk) (129.215.16.10) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 29 Oct 2017 20:38:41 +0000 Received: from flakey.inf.ed.ac.uk (flakey.inf.ed.ac.uk [129.215.33.46]) by loire.is.ed.ac.uk (8.14.7/8.14.6) with ESMTP id v9TKccPN026286 for ; Sun, 29 Oct 2017 20:38:38 GMT Received: from troutbeck.inf.ed.ac.uk (troutbeck.inf.ed.ac.uk [129.215.25.32]) by flakey.inf.ed.ac.uk (8.14.7/8.14.7) with ESMTP id v9TKcbhO005841 for ; Sun, 29 Oct 2017 20:38:37 GMT Received: from troutbeck.inf.ed.ac.uk (localhost [127.0.0.1]) by troutbeck.inf.ed.ac.uk (8.14.7/8.14.7) with ESMTP id v9TKcceW020469 for ; Sun, 29 Oct 2017 20:38:38 GMT Received: (from ht@localhost) by troutbeck.inf.ed.ac.uk (8.14.7/8.14.7/Submit) id v9TKcbRV020468; Sun, 29 Oct 2017 20:38:37 GMT To: cygwin@cygwin.com Subject: Re: Attention PostgreSQL maintainer References: From: ht@inf.ed.ac.uk (Henry S. Thompson) Date: Sun, 29 Oct 2017 20:38:00 -0000 In-Reply-To: (Henry S. Thompson's message of "Sun\, 29 Oct 2017 19\:13\:36 +0000") Message-ID: User-Agent: Gnus/5.1012 (Gnus v5.10.12) XEmacs/21.5-b34 (linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Edinburgh-Scanned: at loire.is.ed.ac.uk with MIMEDefang 2.78, Sophie, Sophos Anti-Virus, Clam AntiVirus X-IsSubscribed: yes X-SW-Source: 2017-10/txt/msg00366.txt.bz2 --=-=-= Content-length: 568 OK, here's and attempt at a set of install instructions for Windows 10 Professional Ver 10.0 Build 14393 Cygwin DLL version: 2.9.0-3 Postgresql: 9.6.5-2 I got slightly muddled with the cygserver and postgress install-as-service steps, so the attached may not quite be right in that regard, I won't be in a position to do another clean install until next week to confirm, so happy to hear from someone else who can do so sooner... Maintainer: Please note what I believe to be a bug in the current release which is described/fixed in the second step below. ht --=-=-= Content-Disposition: inline; filename=pg_9.6_install_notes.txt Content-Description: Postgresql install notes for Cygwin Content-length: 2911 I was eventually able to follow a modified version of "For the impatient: install as service (hard)" from /usr/share/doc/Cygwin/postgresql.README, as follows: * Dump your old database, if you had a previous installation * !!!! IMPORTANT!!!: edit /etc/rc.d/init.d/postgresql to fix what I believe is a bug as shipped: On line 32 or thereabouts, change DAEMON="$progdir/$prog.exe" ---> DAEMON="$progdir/$prog" * Adjust any other (e.g. PATH) settings in /etc/rc.d/init.d/postgresql * If you had an old installation, move the data directory (e.g. /usr/share/postgresql/data) elsewhere, or at least save .../data/postgresql.conf somewhere before you delete .../data * If you don't already have cygserver running as a service: > /usr/bin/cygserver-config > cygrunsrv --start cygserver * Initialise Postgresql > /etc/rc.d/init.d/postgresql initdb # in an elevated shell The files belonging to this database system will be owned by user "[you]". This user must also own the server process. The database cluster will be initialized with locale "C". The default text search configuration will be set to "english". Data page checksums are disabled. creating directory /usr/share/postgresql/data ... ok creating subdirectories ... ok selecting default max_connections ... 30 selecting default shared_buffers ... 128MB selecting dynamic shared memory implementation ... posix creating configuration files ... ok running bootstrap script ... ok performing post-bootstrap initialization ... ok syncing data to disk ... ok WARNING: enabling "trust" authentication for local connections You can change this by editing pg_hba.conf or using the option -A, or --auth-local and --auth-host, the next time you run initdb. [Success. You can now start the database server using: /usr/sbin/pg_ctl -D /usr/share/postgresql/data -l logfile start # ignore this!] done. * If you had a previous install, do a diff between your saved postgresql.conf and the new .../data/postgresql.conf and copy over any substantive changes you had made and wish to keep * Install as a service > /etc/rc.d/init.d/postgresql install - cygserver OK - Installing PostgreSQL daemon: done. > /etc/rc.d/init.d/postgresql start * Cleanup up the initial odd role situation > psql -U SYSTEM postgres postgres=# ALTER ROLE "SYSTEM" WITH SUPERUSER INHERIT CREATEROLE CREATEDB LOGIN REPLICATION; postgres=# CREATE ROLE [yourCygwinLogin]; postgres=# ALTER ROLE [yourCygwinLogin] WITH SUPERUSER INHERIT NOCREATEROLE CREATEDB LOGIN NOREPLICATION; postgres=# \q * Create a database for yourself > psql -U [yourCygwinLogin] postgres postgres=# CREATE DATABASE xyzzy WITH TEMPLATE=template0 OWNER=[yourCygwinLogin] ENCODING=....; postgres=# \q > psql -U [yourCygwinLogin] xyzzy [off you go] --=-=-= Content-length: 354 -- Henry S. Thompson, School of Informatics, University of Edinburgh 10 Crichton Street, Edinburgh EH8 9AB, SCOTLAND -- (44) 131 650-4440 Fax: (44) 131 650-4587, e-mail: ht@inf.ed.ac.uk URL: http://www.ltg.ed.ac.uk/~ht/ [mail from me _always_ has a .sig like this -- mail without it is forged spam] --=-=-= Content-Type: text/plain; charset=us-ascii Content-length: 219 -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple --=-=-=--