Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wCKsp-001srK-27 for pgsql-admin@arkaria.postgresql.org; Mon, 13 Apr 2026 17:15:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wCKsn-0087D7-36 for pgsql-admin@arkaria.postgresql.org; Mon, 13 Apr 2026 17:15:34 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wCKsn-0087Cx-1u for pgsql-admin@lists.postgresql.org; Mon, 13 Apr 2026 17:15:34 +0000 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wCKsm-00000000sFv-0rUH for pgsql-admin@lists.postgresql.org; Mon, 13 Apr 2026 17:15:33 +0000 Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-488af96f6b2so62730055e9.0 for ; Mon, 13 Apr 2026 10:15:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1776100531; x=1776705331; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=zaBwCyyVBatHoUE+pzVl1kYRzbOpJUpSOm+oWctXSmk=; b=pualnymodklUmvOfBjG7a54uKFXvOkHSZq8sH9LProi2fgrApBEOZFQ5ioiKRNf4fn hf727/bh1WGCUxIO/Lodm3G+EDhDl7JRnDvY3rZeAoOWhNkZXiNYKYzOY0puVwbX1ml5 hlvL3eKF0vGPhWb7b86jCvLWN4VVzUvTxwYyN08v1ueAiYSk1QkNZ5v13IXILCrZVTLt mHJTK1ynoLd1huc3XNtbUB4P7YVG+wtFhEw75wxt9xUOL0qSUn9o5iVpcgVUy6e6rd5W aEyUFZH5rP+7GKSkjYNcv/mN1bhXS/ujtRyhz+gR7fhv8ja5CJiwzLdaCRozoL8Fpy/4 X5DA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776100531; x=1776705331; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=zaBwCyyVBatHoUE+pzVl1kYRzbOpJUpSOm+oWctXSmk=; b=lmc+TZMG4jFrI9/C/uFjun3xL65vUhHdFkPYys3szSI46eP3ZEagoBamYL2y6RRcN+ 6j348aSlrw3DN0RUc5T3K365MhMzFQAPJhif5qisV4oEZicA9ITlSgwLTdmxpii5YP5+ rcYkZFEIIA9bJ8OunqB0t5TwMj6ImyXoBx9n1qSEPq4J/HU0lSIMbWpKX+h8G7a3uVZL zAxihjtn+hw9oTje/2+vouHcSRH9mpHh9WXRnPAj4txjAKNH9ZfOzp/FxawRPvpROmWN /M6MWsL4NCqRiAq1u0jUhKAxTP15YoG8AxdjWfGWtUvX/wMhUmdX6PmWSKB0+OEpnxYi SNwg== X-Gm-Message-State: AOJu0Yz5dTPnSUHvBKJdG7gPrwZ+OjBVJ5cy7h3vyBUMouK1zvnkQU45 4hc5Hf310YzQhT1pq+cFnLVaMq3eWYHHhrOAvjQMkI78zjR3YOl0IptyREVk+z0h7BA= X-Gm-Gg: AeBDietJqoZFyaF2wwoX8o/T39HOVrJcqq1yKS74540fDdvMo1aeIstpj0Ep7qOcSHC xKMkCpQETlNkWMY4E83GLq6nuaFvTw4Ynp/wrS6J7VF12DAwwtex58pnYxpMEPi7nlm1N/YtL+4 ACfGJqHSOpbuFfKxBQgFVGwNarF11YM5P07Qb6rX/WgbuRyq7hn5G7V/p+7ayhISEGVRgmX4jTO GKabNvxr5lJ4JKRL3lB1bEZxHrH+POZ5GRmzojQWHwR8MdnPCBxfYaqfLY9WHUuSGX/f4VuZRRt m3dQIiJEkuGB+71fVVxRLdJSd1olcmA5w26aExzzPWX5fauLfn4wn7aGceEcGHmVZCffNQ7gvoG /fXuTGPUmjE5AYo9rJvKgGyGs8ZlHpnMrRr84mHkAle+WNzddH/WReIFhx9zDCKCFK/1J4Nrj15 a5TvfXj6KdDgkkahGZQBQjPxfbjI0bx2Sn/KkKq55RIlir5N8mXzlnF/58URV5+OIGU+M1DJu8H to4AA64yJra5dSSwTtMhrt07YnArjxHuW9X X-Received: by 2002:a05:600c:c08b:b0:488:bc6a:528d with SMTP id 5b1f17b1804b1-488d68867a0mr142096835e9.22.1776100531169; Mon, 13 Apr 2026 10:15:31 -0700 (PDT) Received: from laurenz.albe-K4N0CV00F97414D (178-190-177-217.adsl.highway.telekom.at. [178.190.177.217]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-488d5d97c65sm101711175e9.6.2026.04.13.10.15.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Apr 2026 10:15:30 -0700 (PDT) Message-ID: Subject: Re: Slowness From: Laurenz Albe To: Raj Cc: Pgsql-admin Date: Mon, 13 Apr 2026 19:15:26 +0200 In-Reply-To: References: <2fd0442020d5b23609873f999b7d374875875689.camel@cybertec.at> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.58.3 (3.58.3-1.fc43) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, 2026-04-13 at 22:05 +0530, Raj wrote: > On Mon, 13 Apr 2026, 18:32 Laurenz Albe, wrote= : > > On Mon, 2026-04-13 at 18:25 +0530, Raj wrote: > > > When customer says they are facing slowness, what all wee need to che= ck in > > > postgres db with 3 node patroni set up (sync between 1 and 2) - async= with dr. > > >=20 > > > We recently migrated from oracle to postgres..vacuum analyze is done. > > >=20 > > > How to check this during the time slowness faced and also after coupl= e of hrs of issue window. > > >=20 > > > Should we start with pgstatstatements and logs or how is it. Help.me = hight level what all I need to check > >=20 > > You have to figure out *what exactly* is slow.=C2=A0 The customer has t= o tell you which > > statements are slow. The parameter "log_min_duratoin_statement" might h= elp. > >=20 > > Then you have to tune those statements. > > How long min duration statement is decided. Is it dba who decide how much= needs to be set? Sorry, I made a typo. It is a database parameter and called "log_min_durat= ion_statement". Your questions seem to indicate that you have almost no knowledge about Pos= tgreSQL. Without database knowledge, it is impossible to find slow statements, let a= lone tune them. Perhaps you should spend some time with the PostgreSQL documentation= or hire a consultant. Yours, Laurenz Albe