Re: initdb and CREATE DATABASE take TOO MUCH time on Win7

Поиск
Список
Период
Сортировка
От Jay Riddle
Тема Re: initdb and CREATE DATABASE take TOO MUCH time on Win7
Дата
Msg-id 351735032.2648829.1533562281871@mail.yahoo.com
обсуждение исходный текст
Ответ на initdb and CREATE DATABASE take TOO MUCH time on Win7  (康桥 <kbridge@126.com>)
Список pgsql-novice
A complete guess on my part but maybe anti-virus software scanning the files as they are being written?




From: 康桥 <kbridge@126.com>
To: pgsql-novice@lists.postgresql.org
Sent: Monday, August 6, 2018 12:40 AM
Subject: initdb and CREATE DATABASE take TOO MUCH time on Win7

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


В списке pgsql-novice по дате отправления:

Предыдущее
От: 康桥
Дата:
Сообщение: initdb and CREATE DATABASE take TOO MUCH time on Win7
Следующее
От: Mike Dewhirst
Дата:
Сообщение: Switching from 9.1 to 9.5 on Ubuntu 16.04