Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TT9TK-0005O5-I3 for pgsql-bugs@postgresql.org; Tue, 30 Oct 2012 10:55:02 +0000 Received: from mahout.postgresql.org ([98.129.198.123]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TT9TD-0004tw-Rm for pgsql-bugs@postgresql.org; Tue, 30 Oct 2012 10:55:02 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TT9TB-0006kc-Sd for pgsql-bugs@postgresql.org; Tue, 30 Oct 2012 10:54:54 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1TT9TB-0001J3-F5 for pgsql-bugs@postgresql.org; Tue, 30 Oct 2012 10:54:53 +0000 Date: Tue, 30 Oct 2012 10:54:53 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #7628: Installation of PostgreSQL 9.2.1 on Windows 7 may take too long To: pgsql-bugs@postgresql.org From: gtsal@intracom.gr X-Pg-Spam-Score: -2.6 (--) X-Archive-Number: 201210/246 X-Sequence-Number: 34546 The following bug has been logged on the website: Bug reference: 7628 Logged by: George Tsaloukidis Email address: gtsal@intracom.gr PostgreSQL version: 9.2.1 Operating system: Windows 7 Home Premium 64-bit, SP 1 Description: = Dear All, I downloaded setup file postgresql-9.2.1-1-windows-x64.exe from your web site, and tried to install PostgreSQL on my machine. Before finishing, one-click installer displayed the message =E2=80=9Cinitializing the database cluster=E2=80=9D and stayed there for ho= urs. Using perfmon.exe tool I found that there was a lot of disk activity and that program icacls.exe were accessing a lot of files contained in some personal folders. Selected installation directory was =E2=80=9CC:\Program Files\PostgreSQL\9.2=E2=80=9D. Search on the web revealed that installer uses icacls.exe to change access permissions on installation directory. However in my case, files accessed by icacls.exe had nothing to do with installation directory. The next step was to check file =E2=80=9CC:\Program Files\PostgreSQL\9.2\installer\server\initcluster.vbs= =E2=80=9D. That script calls icacls.exe for all folders consisting installation directory except for =E2=80=9CC:\=E2=80=9D and =E2=80=9CC:\Pro= gram Files=E2=80=9D (if they are part of installation directory). Unfortunately, instead of accessing %SYSTEMDRIVE% environment variable, script tries to get the value of %SYSTEMDRIVER%, which does not exist. So system=E2=80=99s root directory is not really excluded and if it contains a lot of file (as mine), the installation may need some hours. To check it, I defined a new environment variable (SYSTEMDRIVER=3D%SYSTEMDRIVE%) and ran the setup program again. This time installation finished within a couple of minutes. Best Regards, George.