initdb and CREATE DATABASE take TOO MUCH time on Win7

From: 康桥 <kbridge(at)126(dot)com>
To: pgsql-novice(at)lists(dot)postgresql(dot)org
Subject: initdb and CREATE DATABASE take TOO MUCH time on Win7
Date: 2018-08-06 07:39:57
Message-ID: 39369a86.5886.1650e2da5d6.Coremail.kbridge@126.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Hi all.

My team is developing a product using PostgreSQL as the database. During testing, the QA group found that on some computers 'initdb' and 'CREATE DATABASE' take much more time than that on others.

For example, on my computer, 'initdb' takes less than 4 seconds on an SSD, 10 seconds on a normal hard disk. 'CREATE DATABASE' takes 0.8s for the SSD database. While on my colleague's computer with similar hardware configuration, 'initdb' takes almost 1.5 _minutes_, and 'CREATE DATABASE' takes 1min 14sec! After finding that, I was totally shocked.

Having tried some googling, but didn't find anything useful. Could anyone give me some ideas?

Environment:
- Windows 7 x64
- PostgreSQL 10.1 x86

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Jay Riddle 2018-08-06 13:31:21 Re: initdb and CREATE DATABASE take TOO MUCH time on Win7
Previous Message Alvaro Herrera 2018-07-26 20:29:19 Re: Fwd: test mail