Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i0o7r-0008U7-NW for pgsql-admin@arkaria.postgresql.org; Thu, 22 Aug 2019 14:31:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i0o7q-0008Hh-IL for pgsql-admin@arkaria.postgresql.org; Thu, 22 Aug 2019 14:31:42 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i0o7q-0008HE-7G for pgsql-admin@lists.postgresql.org; Thu, 22 Aug 2019 14:31:42 +0000 Received: from mail-oi1-x235.google.com ([2607:f8b0:4864:20::235]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i0o7o-0002JC-11 for pgsql-admin@lists.postgresql.org; Thu, 22 Aug 2019 14:31:41 +0000 Received: by mail-oi1-x235.google.com with SMTP id g7so4508327oia.8 for ; Thu, 22 Aug 2019 07:31:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=aatdYi+kDx97RJnHsSjbhfc4f7xep1NSvzORDET/o1I=; b=W54lQQmXoClnpkwEdKSLURkRxOf0VBgqNhbA9VRm4m7Rkj7CuL7KHuqWluXmfa4S8y RNvgFgtTmfHwzwSo8iQY7Qa3j1dQQsfWQaJqkBuO9p4D5ZktXrBmCFPA9fJdodtipgYD n23V4bYRklLVc3tGA9R0R1CuO3DAjS8FFwhKRpoR6uvaIAQEq3rxwUtyzubyXvgcBx5A vxucea6KlWHg0DtDXja5JK6gdUiiSqgztaM8pU9W1wAZIGNJHNFr1DTWiFYebSwZXlv1 QxrEN5QkGqRZVjFL5ZS9e54kwXtaBDJ/kOFPUxZNdOIqVOKFURKyFtinaGwAgDxpV4v5 1jxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=aatdYi+kDx97RJnHsSjbhfc4f7xep1NSvzORDET/o1I=; b=n0TnxyqSV1nYovzfqDHq2FQeym2+6dn2ZiyDAnYc01P7SRLKiWW6RyuhPZ4wDBifHL emmEV+hRm2n6ptnceMvduWNcLz/ZzTfZPAuzilNJsAr0v8lu2MygLtksMAPE0sm4T2xd 1tv/xq+XA/76GLAxoYG0fhxZmDTX+DspJ8MnnV6oygNH/jhb6KE3ut/QINJgepzNCqnr rqgRyI6v7cp4DM4Bql6pSxMnIDaMzrSLZwawBuHD8i4AVF1FI0WGOvJjkVFgB+ZZ62Ql elsp4sIJ1V7Ka6a2Y3V1GjEBYP4tNxeaUwmMh/mvlqzKfWrzgdA3pvHUp/dmlX4o3Fut g1Gw== X-Gm-Message-State: APjAAAUK03+rFmUVea6uh8G6HivdfI2Pecb04GzEr5oZYx6JnADuKBgv RAUo7fLDQKg4810SPCfv5bwDAlkB38l43Q== X-Google-Smtp-Source: APXvYqxcHGf5vaS8YeifPnLbd0PdVWZcRZhE2tXGb7nThjvTxYX+xalTMpjCtjofrni0ZTXZLLmDqg== X-Received: by 2002:aca:750b:: with SMTP id q11mr3743660oic.116.1566483942883; Thu, 22 Aug 2019 07:25:42 -0700 (PDT) Received: from [192.168.1.10] (ip70-186-126-197.no.no.cox.net. [70.186.126.197]) by smtp.googlemail.com with ESMTPSA id a21sm6967515oic.51.2019.08.22.07.25.41 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Aug 2019 07:25:42 -0700 (PDT) Subject: Re: Postgres DB Slowness To: pgsql-admin@lists.postgresql.org References: <2A91BEF8171A5349931391E0C721CC5359E73FC3@CPEMS-KPN301.KPNCNL.LOCAL> From: Ron Message-ID: <9840f6c7-5644-1928-e224-b06ecd9297eb@gmail.com> Date: Thu, 22 Aug 2019 09:25:41 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <2A91BEF8171A5349931391E0C721CC5359E73FC3@CPEMS-KPN301.KPNCNL.LOCAL> Content-Type: multipart/alternative; boundary="------------F3FC924971712936748EDD72" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------F3FC924971712936748EDD72 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 8/22/19 9:04 AM, 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? -- Angular momentum makes the world go 'round. --------------F3FC924971712936748EDD72 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit On 8/22/19 9:04 AM, 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?

--
Angular momentum makes the world go 'round.
--------------F3FC924971712936748EDD72--