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 1h3x5c-0002fU-2D for pgsql-general@arkaria.postgresql.org; Wed, 13 Mar 2019 06:10:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h3x5a-0007cI-Jg for pgsql-general@arkaria.postgresql.org; Wed, 13 Mar 2019 06:10:06 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h3x5a-0007Yd-5t for pgsql-general@lists.postgresql.org; Wed, 13 Mar 2019 06:10:06 +0000 Received: from shaula.uberspace.de ([185.26.156.49]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h3x5X-0007Fi-0l for pgsql-general@lists.postgresql.org; Wed, 13 Mar 2019 06:10:05 +0000 Received: (qmail 12593 invoked from network); 13 Mar 2019 06:10:00 -0000 Received: from localhost (HELO ?IPv6:2a02:168:5c76:0:79fc:13b0:f580:f50d?) (127.0.0.1) by shaula.uberspace.de with SMTP; 13 Mar 2019 06:10:00 -0000 Subject: Re: xmin and very high number of concurrent transactions To: Vijaykumar Jain , pgsql-general@lists.postgresql.org References: From: reg_pg_stefanz@perfexpert.ch Message-ID: <36aeac1a-2f70-3e75-68a4-89e174d28646@perfexpert.ch> Date: Wed, 13 Mar 2019 07:09:58 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk I may have misunderstood the documentation or your question, but I had the understanding that xmin is not updated, but is only set on insert (but yes, also for update, but updates are also inserts for Postgres as updates are executed as delete/insert) from https://www.postgresql.org/docs/10/ddl-system-columns.html > xmin > The identity (transaction ID) of the inserting transaction for this row version. (A row version is an individual state of > row; each update of a row creates a new row version for the same logical row.) therfore I assume, there are no actual updates of xmin values Stefan On 12.03.2019 20:19, Vijaykumar Jain wrote: > I was asked this question in one of my demos, and it was interesting one. > > we update xmin for new inserts with the current txid. > now in a very high concurrent scenario where there are more than 2000 > concurrent users trying to insert new data, > will updating xmin value be a bottleneck? > > i know we should use pooling solutions to reduce concurrent > connections but given we have enough resources to take care of > spawning a new process for a new connection, > > Regards, > Vijay >