Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aLEQ2-0004dN-TD for pgsql-bugs@arkaria.postgresql.org; Mon, 18 Jan 2016 18:20:47 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aLEQ2-0003og-Ff for pgsql-bugs@arkaria.postgresql.org; Mon, 18 Jan 2016 18:20:46 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aLEQ2-0003oa-4D for pgsql-bugs@postgresql.org; Mon, 18 Jan 2016 18:20:46 +0000 Received: from mail-pa0-x22c.google.com ([2607:f8b0:400e:c03::22c]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1aLEPx-0006Ya-84 for pgsql-bugs@postgresql.org; Mon, 18 Jan 2016 18:20:45 +0000 Received: by mail-pa0-x22c.google.com with SMTP id yy13so344813995pab.3 for ; Mon, 18 Jan 2016 10:20:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lucee-org.20150623.gappssmtp.com; s=20150623; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=7xm0rV9hqZ9HUQLzi8t4bS3v1Ryaqtb3vABxOy+jeuo=; b=xphZH/ILYh78k8hODm/M/Bk55qA3Q6hAnlliEC9s6ccayUP1FylM7oKqw1dccUwhNO DyE0OTTB+Lr+KeBRgFF0xSxb0LQ7nvDPIdFRJNQ9z/Mz1UupWit1h9M3Ufv9gioNeiF3 P+ItpmJwFWopI//qZnK/dURdbig/9fQw/XWjPtug6XwfKqtAY23P1blaoe48zwhR64HE Dp6ksL4M6ge2VJ3BtVktMzo+I0c+NctcIeO1XsHa1TJld9u8PBH1fjzWOEXJOfZVMZqt W45XXC38xMrelUvEqB6qbBPou85uj+/KE0gGXSYxDlBdV7aZu7dh07Pr4Wx/Fu3EpFZo C3vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding; bh=7xm0rV9hqZ9HUQLzi8t4bS3v1Ryaqtb3vABxOy+jeuo=; b=FmyV4B36BUy8ptexZwo9jV1wSdb/uY1/2ar8nXAa+OUXMyX7lgz7Lfc+R5PtsEOuBr lgUCJs+9GCsrRb5wRQZH3E4t3eIMvt5rFflHNyO6DWA3F0url0Rfe2tz36Il2ryczF5z dDTaVMS4ksTgdpOgmUAL4PxKzYGK6R9ADqX1x0oPBGSA9xBavpUSy2qEPXu9aD4X6wCg pd7KCArj2AxeiS1o6xq1SEMpQfjziCEr5n8n5jlRo6vopMjgHGmUOUq4pf12iRqd2XnY j2M8ardUwBGOikcJkSjmm0ts457n+Ze4k1n5Y3mlvcxoNDEoVvBFbCN/1jPmCZ4SMH+j ViZg== X-Gm-Message-State: AG10YORvsNVvvNZtrifVkJ+wwlaP/miXCtTYUxNwju11L2IgnvWG+n8Mie46AP9rltfm8w== X-Received: by 10.66.147.136 with SMTP id tk8mr7258049pab.157.1453141238418; Mon, 18 Jan 2016 10:20:38 -0800 (PST) Received: from [192.168.1.11] (cpe-108-185-131-196.socal.res.rr.com. [108.185.131.196]) by smtp.googlemail.com with ESMTPSA id c87sm35567942pfj.41.2016.01.18.10.20.37 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 18 Jan 2016 10:20:37 -0800 (PST) Subject: Re: BUG #13859: pg_upgrade permissions on Windows To: Bruce Momjian References: <20160110182301.7615.96066@wrigleys.postgresql.org> <20160118174114.GK31313@momjian.us> Cc: pgsql-bugs@postgresql.org From: "Igal @ Lucee.org" Message-ID: <569D2CE8.8060105@lucee.org> Date: Mon, 18 Jan 2016 10:20:24 -0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <20160118174114.GK31313@momjian.us> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Bruce, On 1/18/2016 9:41 AM, Bruce Momjian wrote: > On Sun, Jan 10, 2016 at 06:23:01PM +0000, igal@lucee.org wrote: >> The following bug has been logged on the website: >> >> Bug reference: 13859 >> Logged by: Igal Sapir >> Email address: igal@lucee.org >> PostgreSQL version: 9.5.0 >> Operating system: Windows 2008R2 >> Description: >> >> I'm not sure if this is a known issue or not, but in order to run pg_upgrade >> on Windows to upgrade from pgsql-9.4 to pgsql-9.5 I had to: >> >> 1) Give Write permissions to Everyone for the working directory, old-data >> directory, and new-data directory. >> >> * please note that I was running pg_upgrade as Administrator but still had >> to add those permissions > That is odd. We document: > > For Windows users, you must be logged into an administrative account, and > then start a shell as the postgres user and set the proper path: > > I have not heard anyone else have this issue. Thank you for replying. I have documented the issue at http://stackoverflow.com/questions/34664236/pg-upgrade-on-windows-cannot-write-to-log-file-pg-upgrade-internal-log at the time that I was experiencing it. Please note that I, like most Windows users who did not use the EnterpriseDB installer, do not have a "postgres" user account on my system. I use the "NT AUTHORITY\LocalService" or "NT AUTHORITY\NetworkService" to run PostgreSQL. >> 2) Set method to trust in pg_hba.conf for both the old database and the new >> database. >> > The documentation suggests pg_pass, though "trust" works too: > > > Adjust authentication > > > pg_upgrade will connect to the old and new servers several > times, so you might want to set authentication to peer > in pg_hba.conf or use a ~/.pgpass file > (see ). > > Perhaps having a "postgres" account on my system would have resolved this issue as well. Thanks again, Igal -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs