Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lCMLt-00057o-BX for pgsql-general@arkaria.postgresql.org; Wed, 17 Feb 2021 12:54:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lCMLq-0008Js-M4 for pgsql-general@arkaria.postgresql.org; Wed, 17 Feb 2021 12:54:42 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lCMLq-0008Jl-3h for pgsql-general@lists.postgresql.org; Wed, 17 Feb 2021 12:54:42 +0000 Received: from sonic309-19.consmr.mail.sg3.yahoo.com ([106.10.244.82]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lCMLi-0002kn-H0 for pgsql-general@lists.postgresql.org; Wed, 17 Feb 2021 12:54:40 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1613566470; bh=l/vour1kpEREPKPugwZS6e6QVU3LsN/UhZHzHsVcaOM=; h=Date:From:Reply-To:To:Cc:In-Reply-To:References:Subject:From:Subject:Reply-To; b=SAbZfwazIc+55ZjiL20nAWLe6Ar7Jq+iU9U3WdCdM1GWn48egWn5wlqs0zqCY5ZcB71xWgIFgX7+3z8luWpObi7rngToKVnX1NVdxPhfQYj3YibfRfrNxGxL1CZq03BNIY6qarfBeiRU2bGWzDgVkyb1eBk7CYQhKSEPaf4JD7p7+njQVdIWg651Zmk39BtExfc/O838CcHwKNEoBUtSKErJ8L+8ftlzkQJJWa+u1Qs4uZHJS8yiStuhQmTM/xAEvXeDMcqifbWB/kG55wYzJ9YzOR2mTiqMhDioFjKdrf/7xouB7JCxdEg7+ly7+fTMxCxSUyyCApinlk+0H193ww== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1613566470; bh=2XBHBmpIy0UbRyjEuaZmYslYNBGREo/pI52uaBFDTxy=; h=X-Sonic-MF:X-Sonic-MF:Date:From:To:Subject:From:Subject; b=bfiWTd5Ha7SJQo9V1oDOJAIJt6BWz/dpLZ2HW9JBdKSsxHEv2F5rpmcoYiAMfuXm3jA16qpwTStnLxA95EFjOqxA9tsvPW7Wn3aWp7msAOxC6r7dIva5FrqEjT/ZD5CWgyB48ls9KGjNwT6LTJykGkGeT5TgcWC9c2fVtrl9dr0fyUaB3NpD8M449UJGDYXdAYmTN9FBCN1vU4J26bAXDHuRBtkG+OhbE5Q/3ZsLjaxLE5WAJ9xLvhAaLH8LlvCE6xGx4B9TWuVQ1ZiYI3ADQQkGWaUsq09cMGdOxLp2Kt5NKNHW3Hig+PxLHfZSpqW7g+JrGebD+mPPkhZxGu6Kyw== X-YMail-OSG: mqQ2mfUVM1nbnb2TPHodhlWnExSdnh5DgkJuVKhaw62TLJSG.uNJNnDNfr9_EF8 5VhrUu_UQAbtBMRHxGrvrvWnJwGwju7ztDW0pCQ3oFf4iykPPAzwtjPqGDE64RYOaAtdId22aO3U cbQyna_QWjaoydgbyjDaJISZycPioHm6gOqrgB6JVP.DKNIUygqyl7FbSzezL1M2DPRv3F4ncVqC xh9QaWRDwqiaXpGhdRg9XqBVr4v01aqyuHacCEwWojkI.KUR.oiK8M6TleJiUx6aAuuCgxm2GoM0 ZhGKpmwTtb87MROREhgIpPNKhVLKPsMJVlEOQl6aLwlsv4hGY_04tBXZN9XyS.sTfjV._kZOJ7LJ .UE8L7E_pqmOypFIEZwND6DV1HcduxaTKWwmT8SeoefOB4pK1CnabzVfiIBIiATPBuisvSrMQRYT _vd4UBXoFh51YiduvDeLrsODqcHzichg5nZEushPhlY811pxFbQeVT7jQCLv_0bYWalklZfDdEv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ne1.yahoo.com by sonic309.consmr.mail.sg3.yahoo.com with HTTP; Wed, 17 Feb 2021 12:54:30 +0000 Received: by smtp425.mail.bf1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID f3b350557f078e231237f7f188507a2a; Wed, 17 Feb 2021 12:54:26 +0000 (UTC) X-YMail-OSG: bxGX3gEVM1n0CrQxr2_yO3h4j.TPFSPm5lHjb.ANfxRbnCQzu1bzWgm2GTGO4xj 63_gPsgBmLM2Ib8wbjOKoOWOxYZuFS95DKM_K4s8p.NcUf0pWnzyRykN8TxhYuoM.bOwX1yT7CYV qOAwvqVs_Sbslr4.rAHhktzOB725UI5w8On4Qecb75zdTry3YBSHp1kQ_OKKYWzlaXgJMYkJack1 apAEFrBIUrslF120aXHQpW7UqKKDve37WXW.FzVRW8DKz3n9zecI.XJCiFm9oxYxV0e8wc0HOWzO rkTE4lD7ioiWGjbe5TYXhGuMJixP5AYHeMcyzI74aWGpZUZTh7DvLaHIScHcsPHwkaId7gOgxDKm 9nW80KoHNZaqTqGuVWOE5aX78r2PZ.yWtFRMNm5ws2LG6yHYpBwbRtUtJ0miJYRANxMEZf.FS4Af C7KxhduiE1EXbj7okLhGoaAgE1j5H2EMNlU7rgXVcZj4kdsmHManIvO5pShk_wSEz._Ms6panuKA LNEkhR0QwkSXwtye2GzuzWp8Vr5mP.CAgrFj2uI3cdEPJa4EJr_.lbp1i.dL2msvORwlpYYUOMfu Qz5SZFHaUK5e5olVMuK6xRM5SglQ73YsTtQreYMhjsUDovMPYWdIOMKma27w.ozFS2scR8.omMF0 ew7NZVpFUHmUHnLa9abEQJustkItTCKEwrCJRtV3hbnzqJs.gOfzdKk8_BJWjR0zpRKCgoyXETnW 11rX8LqSIH8BcYIKURTL.TVeoSfxfZpBAVeJdETA3lmOYr4FfdFrK7IdCi6Dhi5PSCjBT0KQXooH YsG5xnKObs_2lvL0FND8fUsNfM13pzC7b6gTUdBabnrb4LN9amafLT0iD_WrVpxYEi3iCksa5Yuq pNw7P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ZKyRSZP5HgZOr29y10bTklbMXT4QnNDZjFrlkqCPqWk.KswCg7rx1B1ePplyaI0b GpwLP1uDbB3owUfQyG.VJK43wK0uwEBN0WiWF7cIBwe19pZXGg7Y.R_8vSxv6pz0lnOFO9NG46Hg HvxJvRTHfKlW34B2SXEJ0DIpWQmopruuZ8XBWwPDCGhKLM7zQXrEnD3tJe8tyA5e1o6m7r1sTAou dToLKPjeZ6pC_X.TJV4H_nOme9HDaVgRJ0xoPVKlDUMoxio4dL0e8L5pjiXrUUCMnLgI3idDDxTl R88Uw6BrTEw8OghSP0hGHV5hUrCwxp4yoFMKs2i8UWka.UkOqKJrHYtOA3PhqRhO33ObBgXiLtas N4RPZjMkphu8ZR9D92i3yCjFQ26_qQ9nXSoYLpHV28SPMv5M5iVvEerndYjoK2g5iq4luwop5FQB 5s88WNme2_shTPxfu3eCSf6rkD7y.nCComNKQ_w0bjxtJjmP.58oFf7oiZA17qp8pErejGEPKdgE oJHCNB.LbgUKJBnXWypGKHXk8Pry8yog1MbaIuaArShJ5ZWgAqJnSf8l0T08sO4RKXwOfI5QN3pt Sb46TPTQ_2Gvo3sGOWD9BzR2ZoAoxMz8QSP5NLaFPiTYiRqq9xbH6mVpcKBRVRUjggM47OEGgmTH xdZEzztk.NDd3VwGFosn48.ZiDj5qn5dhBiyKnSptsJOTcQHAIGlxk_OEBL5ZnuQ1N7k- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic308.consmr.mail.gq1.yahoo.com with HTTP; Wed, 17 Feb 2021 12:54:23 +0000 Date: Wed, 17 Feb 2021 12:54:18 +0000 (UTC) From: "sivapostgres@yahoo.com" Reply-To: "sivapostgres@yahoo.com" To: "luis.roberto@siscobra.com.br" Cc: pgsql-general Message-ID: <237502737.2090865.1613566458369@mail.yahoo.com> In-Reply-To: <871844152.5278987.1613563515397.JavaMail.zimbra@siscobra.com.br> References: <1671732859.1031650.1613563275311.ref@mail.yahoo.com> <1671732859.1031650.1613563275311@mail.yahoo.com> <871844152.5278987.1613563515397.JavaMail.zimbra@siscobra.com.br> Subject: Re: Slow while inserting and retrieval (compared to SQL Server) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2090864_765936865.1613566458367" X-Mailer: WebService/1.1.17712 YMailNorrin Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36 Content-Length: 6630 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk ------=_Part_2090864_765936865.1613566458367 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello,Yes, that's what I feel.=C2=A0 With no records in any tables, workin= g from the same machine where PG has been installed, with only one user wor= king, inserting few records (10 records in total, in all 6 tables)=C2=A0 sh= ould not take this much time.=C2=A0=C2=A0 I'll be inserting records from PowerBuilder applications, and how to catch = the result of Explain.=C2=A0 OR should I run all insert commands in PG Admi= n or so and catch those results?=C2=A0=C2=A0 As I'm new to PG, any documentation/help in this direction will be useful. Happiness AlwaysBKR Sivaprakash On Wednesday, 17 February, 2021, 05:35:43 pm IST, wrote: =20 =20 ----- Mensagem original ----- > De: sivapostgres@yahoo.com > Para: "pgsql-general" > Enviadas: Quarta-feira, 17 de fevereiro de 2021 9:01:15 > Assunto: Re: Slow while inserting and retrieval (compared to SQL Server) >=20 > Hello,=20 >=20 > Using Postgres 11 in Windows Server 2012 & Powerbuilder=20 > Working from the same machine where Postgres 11 is installed. So no chanc= e for any network issue, I feel.=20 > No setup/config change done. Just working with all the default settings.= =20 > With no data in any of the 179 tables in that database.=20 >=20 > To populate some basic data we try to insert few records (max 4 records) = in few tables (around 6 tables) from one window. We feel that the insert ti= me taken is longer than the time taken while using Sql Server. We tested al= most a similar window that updated the similar table(s) in SQL server, whic= h was > > faster. With Postgres database, we need to wait for a couple of s= econds before the insert/update is over, which we didn't feel in Sql Server= .=20 >=20 > I feel that some changes in settings might improve this speed, but with n= ot much knowledge in Postgres I struggle to find out those setup values.=20 >=20 > Any help in improving the speed is really appreciated.=20 >=20 > Happiness Always=20 > BKR Sivaprakash=20 Can you run EXPLAIN (ANALYZE,BUFFERS) on the INSERT command and post the re= sults here? Usually inserting this many records should be instantaneous. =20 ------=_Part_2090864_765936865.1613566458367 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello,
Yes, that's what I feel.  With no records in an= y tables, working from the same machine where PG has been installed, with o= nly one user working, inserting few records (10 records in total, in all 6 = tables)  should not take this much time.  

I'll be inserting records from PowerBuilder applications, and how to catch= the result of Explain.  OR should I run all insert commands in PG Adm= in or so and catch those results?  

As I'm new = to PG, any documentation/help in this direction will be useful.

Happiness Always
BKR Siv= aprakash


=20
=20
On Wednesday, 17 February, 2021, 05:35:43 pm IST, <= luis.roberto@siscobra.com.br> wrote:


----- Mensagem original -----

> De: sivapostgres@yahoo.com
> Para: "pg= sql-general" <pgsql-gene= ral@lists.postgresql.org>
> Enviadas: Quarta-fe= ira, 17 de fevereiro de 2021 9:01:15
> Assunto: Re: Sl= ow while inserting and retrieval (compared to SQL Server)
>
> Hello,
>
> Using Postgres 11 in Windows Server 2012 & Powerbuilder
> Working from the same machine where Postgres 11 is insta= lled. So no chance for any network issue, I feel.
> N= o setup/config change done. Just working with all the default settings. > With no data in any of the 179 tables in that database= .
>
> To populate some basic da= ta we try to insert few records (max 4 records) in few tables (around 6 tab= les) from one window. We feel that the insert time taken is longer than the= time taken while using Sql Server. We tested almost a similar window that = updated the similar table(s) in SQL server, which was > > faster. Wit= h Postgres database, we need to wait for a couple of seconds before the ins= ert/update is over, which we didn't feel in Sql Server.
= >
> I feel that some changes in settings might imp= rove this speed, but with not much knowledge in Postgres I struggle to find= out those setup values.
>
> An= y help in improving the speed is really appreciated.
>= ;
> Happiness Always
> BKR Siva= prakash


Can you run EXPLAIN (AN= ALYZE,BUFFERS) on the INSERT command and post the results here? Usually ins= erting this many records should be instantaneous.



------=_Part_2090864_765936865.1613566458367--