Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 7481BB5DC23 for ; Wed, 14 Sep 2011 01:21:07 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 92861-03 for ; Wed, 14 Sep 2011 04:21:00 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from mail-yx0-f174.google.com (mail-yx0-f174.google.com [209.85.213.174]) by mail.postgresql.org (Postfix) with ESMTP id 70720B5DC00 for ; Wed, 14 Sep 2011 01:20:58 -0300 (ADT) Received: by yxm8 with SMTP id 8so1111371yxm.19 for ; Tue, 13 Sep 2011 21:20:58 -0700 (PDT) Received: by 10.68.66.197 with SMTP id h5mr64011pbt.355.1315974058076; Tue, 13 Sep 2011 21:20:58 -0700 (PDT) Received: from ayaki.localdomain (124-148-242-247.dyn.iinet.net.au. [124.148.242.247]) by mx.google.com with ESMTPS id e8sm10648908pbc.8.2011.09.13.21.20.55 (version=SSLv3 cipher=OTHER); Tue, 13 Sep 2011 21:20:57 -0700 (PDT) Message-ID: <4E702BA5.30509@ringerc.id.au> Date: Wed, 14 Sep 2011 12:20:53 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0.2) Gecko/20110906 Thunderbird/6.0.2 MIME-Version: 1.0 To: Thomas Kellerer CC: pgsql-general@postgresql.org Subject: Re: Problem with the 9.1 one-click installer Windows7 64bit References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201109/368 X-Sequence-Number: 179726 On 09/13/2011 02:44 PM, Thomas Kellerer wrote: > It turned out that it tries the following: > (Note that the selected data directory is c:\Daten\db\pgdata91) > > icacls C:\ /grant "tkellerer":RX > > (Changing the permission for the whole harddisk!!) I forwarded your message to Dave Page in case the EDB folks needed to look into this. He commented that: "Aside from the fact that icacls is hanging for reasons unknown, it appears to be doing what it is designed to do - it traverses up the path from the data directory to the root directory, granting read/execute permissions on each dir as it goes. It's a non-recursive grant (the default - /T makes it recurse), and is done because a great deal of the failures we used to see were caused by the user not having read or execute permissions on one of the parents of the data directory (or installation directory)." ... which to me explains why: > Then when I kill that process, the installer starts a new one with > > icacls "C:\Daten" /grant "tkellerer":RX > So it didn't actually hang, but changing the permissions for the entire > harddisk (170GB taken) and the complete c:\Daten (~20GB) directory twice > would have taken ages. As Dave noted, it's a non-recursive grant. It isn't changing the permissions for C:\ and everything under it. It's only changing the permissions for C:\ its self. It's then stepping down the path of parents down to the datadir and doing the same thing to make sure you have the required rights on every folder all the way down. See: http://technet.microsoft.com/en-us/library/cc753525(WS.10).aspx and note the lack of the /t flag when icacls is called. Given that, it's not clear why it's taking so long. A lock of some kind, maybe? Anyway, it's *not* recursively changing the permissions on your HDD. -- Craig Ringer