On Tue, Aug 1, 2017 at 6:41 AM, Sumeet Shukla <[email protected]> wrote: > 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.
There's lots of areas where you could be running into problems. I suggest reading this wiki page on reporting performance problems. It'll help you gather more evidence of where and what the problem is. https://wiki.postgresql.org/wiki/Guide_to_reporting_problems -- Sent via pgsql-performance mailing list ([email protected]) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance
