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 1h3nGU-0007kM-Gn for pgsql-general@arkaria.postgresql.org; Tue, 12 Mar 2019 19:40: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 1h3nGT-0000Z5-9S for pgsql-general@arkaria.postgresql.org; Tue, 12 Mar 2019 19:40:41 +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 1h3nGS-0000Y5-8b for pgsql-general@lists.postgresql.org; Tue, 12 Mar 2019 19:40:41 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h3nGP-0001TI-9a for pgsql-general@lists.postgresql.org; Tue, 12 Mar 2019 19:40:39 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 91A692F81; Tue, 12 Mar 2019 15:40:35 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Tue, 12 Mar 2019 15:40:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=V 0sFxgiHbSvDIzvHrkeYBReGLROWYGOhZxLjmq3mT9k=; b=RYKLiRDCTmuFuOBYU 3GVet/tDhKaLjjq2SAq+rOmQPsKp0uiidUA1FOAHPz1I9If4wiWv1v2EbyWJVJ1T ENAnUuk/qHs1dUi03RsCtQF0nOoHuPOHMXdDJYkbtjJ9gM3VzhM5Uu98LbNpbg4n 25C2KgbDvpzYNnnsUeB3A8lCVxTq3EcP+f7+GYI9v905g3ljLAhbThS9AnQ1K/gD RAgQD5KuZdJLPGGXwgYkniOgPjMTybwQosmByQYBW1X37V5mL8dE4FRadB1vwAsU Rwa3RiUMfWwBBOkflxA38GGowN2RKSru8TjzcqPeM/3chj7uxfTRtLe/H8wLpCk3 juyWw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=V0sFxgiHbSvDIzvHrkeYBReGLROWYGOhZxLjmq3mT 9k=; b=OZX6j100vYxbDSUxE0iNmkvSba/tKBVlNTp2Yhw89RGOY/U0F+Y6Ymt3q SmKbA2rhbWissFUzjq/Ra97GRErAnTu65NoPaqj7R/judjLqA2HfITn17d/8/of5 C3cvQKpkSXUDJL4jI0ZuyZkHdRsoDedZkzmZP2Aj1oq0R7yL1Xwsp7xJavjNgWBA JzaCv6UM//v5nHdv5AgKmf0uQm8sHpxoPfIFKyIirJGH90xpaB/0kjF8nucGxDXS QrH4mkP6102azEffRoSn6HMItqPZ+1XIwKo+AA8Ky+TUYjS3IKhLIiv7aQdopPoI cOVcdOR7xPNa6cLyDLifvjrg24lVg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedutddrgeekgddufedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthejredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucfkphepjedurddvuddvrdduhedtrddvtddvnecurfgrrhgrmhepmhgrihhlfhhr ohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmnecuvehluhhsth gvrhfuihiivgeptd X-ME-Proxy: Received: from [192.168.1.4] (unknown [71.212.150.202]) by mail.messagingengine.com (Postfix) with ESMTPA id 6669EE4173; Tue, 12 Mar 2019 15:40:34 -0400 (EDT) Subject: Re: xmin and very high number of concurrent transactions To: Vijaykumar Jain , pgsql-general@lists.postgresql.org References: From: Adrian Klaver Message-ID: <2f281edd-5a4e-c429-8e73-67b4a811baa7@aklaver.com> Date: Tue, 12 Mar 2019 12:40:33 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 3/12/19 12:19 PM, 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. Why? > 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 > > -- Adrian Klaver adrian.klaver@aklaver.com