Re: [PERFORM] 2 server with same configuration but huge difference in performance

From: Sumeet Shukla <sumeet(dot)k(dot)shukla(at)gmail(dot)com>
To: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
Cc: pgsql-admin <pgsql-admin(at)postgresql(dot)org>, "pgsql-performance(at)postgresql(dot)org" <pgsql-performance(at)postgresql(dot)org>
Subject: Re: [PERFORM] 2 server with same configuration but huge difference in performance
Date: 2017-08-01 15:45:14
Message-ID: CABUL136zJCFv37rLA+yhpWgvAb6iWnp7RGp7VvFBwqoPE9E30Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-performance

It seems that it is happening because of the way the database is created.
On an old database it runs perfectly fine or if I use the old DB as
template to create the new one, it runs fine. But if I create a new DB
with same settings and permissions it hangs. I'm now trying to find the
difference between these 2 databases.

Thanks & Regards,
Sumeet Shukla

On Tue, Aug 1, 2017 at 9:05 PM, Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
wrote:

> On Tue, Aug 1, 2017 at 6:41 AM, Sumeet Shukla <sumeet(dot)k(dot)shukla(at)gmail(dot)com>
> 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
>

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Scott Marlowe 2017-08-01 16:13:47 Re: 2 server with same configuration but huge difference in performance
Previous Message Scott Marlowe 2017-08-01 15:40:28 Re: phantom rights

Browse pgsql-performance by date

  From Date Subject
Next Message Scott Marlowe 2017-08-01 16:13:47 Re: 2 server with same configuration but huge difference in performance
Previous Message Scott Marlowe 2017-08-01 15:35:20 Re: [PERFORM] 2 server with same configuration but huge difference in performance