pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-admin@lists.postgresql.org
Subject: Re: Postgres DB Slowness
Date: Thu, 22 Aug 2019 09:46:53 -0500
Message-ID: <71b2a6be-9aae-04bb-d006-c46ded2ab243@gmail.com> (raw)
In-Reply-To: <2A91BEF8171A5349931391E0C721CC5359E75079@CPEMS-KPN301.KPNCNL.LOCAL>
References: <2A91BEF8171A5349931391E0C721CC5359E73FC3@CPEMS-KPN301.KPNCNL.LOCAL>
	<9840f6c7-5644-1928-e224-b06ecd9297eb@gmail.com>
	<2A91BEF8171A5349931391E0C721CC5359E75079@CPEMS-KPN301.KPNCNL.LOCAL>

On 8/22/19 9:35 AM, soumik.bhattacharjee@kpn.com wrote:
>
> *From:*Ron <ronljohnsonjr@gmail.com>
> *Sent:* Thursday, August 22, 2019 4:26 PM
> *To:* pgsql-admin@lists.postgresql.org
> *Subject:* Re: Postgres DB Slowness
>
> On 8/22/19 9:04 AM, soumik.bhattacharjee@kpn.com 
> <mailto:soumik.bhattacharjee@kpn.com> wrote:
>
>     Hello Members,
>
>     We have the below PostgreSQL database recently migrated from Oracle.
>
>     The postgres DB parameters are *_attached_* here.
>
>     # DB Version: 10
>
>     # OS Type: Linux
>
>     # Total Memory (RAM): 30 GB
>
>     #CPU
>
>     nproc --all
>
>     2
>
>     There is huge slowness in the database now with any queries.
>
>     *Oracle*- Select * from TABLENAME- in takes  0.009 milliseconds
>
>     *PostgreSQL*- Same query takes more than 2 minutes.
>
>
> Have you validated that the Postgres server has the same indexes?
>
> If so, did you ANALYZE all the tables?
>
> Yes Ron, we migrated from Oracle as per same structure and indexes.
>
> I did the analyze for 2-3 tables now as per my SQL query I wrote and also 
> ran for one particular table below –
>
> VACUUM (FULL,ANALYZE) table_name.
>

What does the query plan for that query look like?

What's the table definition?

Is the hardware comparable?  (Might it be a SAN or VM issue?)

-- 
Angular momentum makes the world go 'round.

view thread (17+ messages)  latest in thread

Message-ID: <71b2a6be-9aae-04bb-d006-c46ded2ab243@gmail.com>
Permalink:  ../71b2a6be-9aae-04bb-d006-c46ded2ab243@gmail.com/
Also on:    postgresql.org/message-id/71b2a6be-9aae-04bb-d006-c46ded2ab243@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: ronljohnsonjr@gmail.com, pgsql-admin@lists.postgresql.org
  Subject: Re: Postgres DB Slowness
  In-Reply-To: <71b2a6be-9aae-04bb-d006-c46ded2ab243@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox