2 server with same configuration but huge difference in performance

Sumeet Shukla <sumeet.k.shukla@gmail.com>

From: Sumeet Shukla <sumeet.k.shukla@gmail.com>
To: pgsql-admin <pgsql-admin@postgresql.org>, pgsql-performance@postgresql.org
Date: 2017-08-01T13:41:51Z
Lists: pgsql-performance
Hi,

I have 2 PG servers with same h/w and configuration and they are not in
replication.

On server A it takes 20 minutes to execute the script.
On server B it takes more than 20 hours. (Seems to be stuck with create
index and and create foreign key steps)

Any guidance to troubleshoot this would be highly appreciated.

Thanks & Regards,
Sumeet Shukla