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.94.2) (envelope-from ) id 1sgJ9R-000Wfh-5N for pgsql-general@arkaria.postgresql.org; Tue, 20 Aug 2024 07:19:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1sgJ9P-00Artw-6V for pgsql-general@arkaria.postgresql.org; Tue, 20 Aug 2024 07:19:31 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sgJ9O-00AroF-MI for pgsql-general@lists.postgresql.org; Tue, 20 Aug 2024 07:19:31 +0000 Received: from mail-vk1-xa2b.google.com ([2607:f8b0:4864:20::a2b]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sgJ9I-000WsY-N1 for pgsql-general@lists.postgresql.org; Tue, 20 Aug 2024 07:19:29 +0000 Received: by mail-vk1-xa2b.google.com with SMTP id 71dfb90a1353d-4fc92316e1bso868839e0c.1 for ; Tue, 20 Aug 2024 00:19:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1724138363; x=1724743163; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=R1T8lI3lEIcoprSRMsIfb2wlfFUoy8yzwgXixHdO18c=; b=SptI6xb8DECJS2d/WD5GlvARrzQUxqJx9Fyq7Sh8iaE50s3pRte4GBAIxzTksXo4Hj RWJmWYeiyrjF8SKXViVSxdE0IOrziPyj1+BInn2G9NuHx3rS6FebTirdgr0mO+LTHs7E SegfdfYak6cHMhxMNyCierOUOs29HA0iKiFLMPzGmtP3TIb9EhTTofbQKYJwHBfVBNJE dvo7IbR1XpaKCLEbuIdxSTkhN09Rep0oFED+zPkOnAcsl0+oEFTGKrDc6LzQ2lHkY1iu TvSi0BXPED4HC9APrDq03q4uHTk8mtypTgzx63d09ZDFJ0fDWHHgX+LM75ZF49xiYpyQ qjlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724138363; x=1724743163; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=R1T8lI3lEIcoprSRMsIfb2wlfFUoy8yzwgXixHdO18c=; b=Q6VJrOrma5oDgaPcWJPoGYb/QXJ2Fk/LEb3IyqbKMHdd8p59+/bbYuIN7osKoD5W6r GheEhe7l3PR9l70Wbz/oDffLKtxZTvvbKG5Us1JCQrF9VUAEdehxhqxPAwZfK8jbDFH+ 7JMve9igYvDUs517jSSzBpEHHXcuqYhbLSZAwn9lzRmnc0oerKq6uhivKNjaP9kFPPBg UmTm4OoZ/KsH31wLQUsT06/7GMHt2FcV6s6jLOOFrTYk2UyB8KHlPxTop5nlLgsoFcad +NL49fjdXWmCWP9cI7kiqHInWVEXaUWIS2xQnnaO/YdUdmNG9xRDg/4SuhSzRlHZFjt2 BRQw== X-Gm-Message-State: AOJu0YyCJhuWDhLuSyJ+iSiggyFlPdh5g3QPeZF2bxHS9MwxNMXIDqTD FPSSyW08IqTHaFR4u4LY5XL22rzpDi7RHdaagTwqso2tPyp5+w4AB/0rsicoT2hL3CozngXURKN US4mlbhoy4XsvnT1DiXMopGRcQYA= X-Google-Smtp-Source: AGHT+IFLKN0wWcPpEkDaM/VXdD45McLjxfudkiKZ+bg76FFbfR/6nf7TrETzf0SlKWDKSApEoVkJ/NBHX1R8gkZ0OVU= X-Received: by 2002:a05:6122:c96:b0:4f5:1978:d226 with SMTP id 71dfb90a1353d-4fc6c5abfe1mr14515361e0c.3.1724138363399; Tue, 20 Aug 2024 00:19:23 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: sud Date: Tue, 20 Aug 2024 12:49:12 +0530 Message-ID: Subject: Re: Insert query performance To: Muhammad Ikram Cc: pgsql-general Content-Type: multipart/alternative; boundary="000000000000b1b7510620183e5e" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000b1b7510620183e5e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Aug 19, 2024 at 1:25=E2=80=AFPM Muhammad Ikram = wrote: > Hi Sud, > > Please make following change in your postgresql.conf file > > log_statement =3D 'all' > > Will this put all the internal sql query or the recursive query entries in the pg_stats_statement view which we can analyze then? And also to debug issues in the production will it be a good idea to set it for a few times and then turn it off or it can have significant performance overhead. --000000000000b1b7510620183e5e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

--000000000000b1b7510620183e5e--