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 1juzA9-0002yn-9i for pgsql-general@arkaria.postgresql.org; Mon, 13 Jul 2020 14:10:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1juzA8-0005HF-8d for pgsql-general@arkaria.postgresql.org; Mon, 13 Jul 2020 14:10:32 +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 1juzA6-0005Ga-LG for pgsql-general@lists.postgresql.org; Mon, 13 Jul 2020 14:10:32 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1juzA3-0002XF-Qv for pgsql-general@postgresql.org; Mon, 13 Jul 2020 14:10:29 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 30CF7C36; Mon, 13 Jul 2020 10:10:25 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Mon, 13 Jul 2020 10:10:25 -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=fm3; bh=O DQayGwGt+pyMxQGXR2+TP9IOfHjM/AZCiK/L/vjMXg=; b=O1JB/EWGbxcGmPU6y Wws8I4HIByOhd3OEediwy5HV89ExxjRJmRBoZFeZVEFW07CjkKLnDUh1bwqaA0dn g7V+0lDSnck6c4EpvLZtt3vNWQxQ6Ck3F5cNhVRXDnFO+psKLt9LgRHuSIisMyTQ uCAxFdL5WixMicUsrYF2fg4K9RigloYFWwExOgv6rPbIzZEUKZChFhevT7zMfiqf hGbN+5yOizCtEgbx3j0FoeHht3txds0Jo/iwuwWBcHFvMVzPUDtqREScSDOC8KQA O2KAMoQ11zBnUGYQFfcuu9Kbhr6wJSzJz79w6jZhbHkVZQ4+4k1G6TLO8H99MjPV lJ1EQ== 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=fm3; bh=ODQayGwGt+pyMxQGXR2+TP9IOfHjM/AZCiK/L/vjM Xg=; b=qHaJMqIScPt3k7JLCzwaTmVkSaSTkoSGFkN4K5KVVI0fYKK1eaf8W4SNC 5qG7I7VhMAJZ8PnPhNUkBKLTPf7IVAa2/WXVJFTXmshukjv/KlGHNhKoIx4hYmKR Uh3LvjxRoE5ehS3NRlzIWz2APWvQXXV4Ka6nY6Ouqcc+EnQB4ZE514CIIzeQXuFj 8hI2crpU7Q7jaM5TDkxl1Dy3ltWx5n2IeHbhIfAADd+F2/PLAJb5YNbs/D8ddbau borQ+AL2FZbsk5MyDnMT6EoQUEdqXbXcOhNTKf7leoEj4HmUTh3+D8IhgKe+aJYv QXmCT0QmrAVb1BG6eVqSq4FpTB3sQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrvdekgdejhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesthekre dttdefjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhl rghvvghrsegrkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpeduudefjeetve ffhefgudehtdfhvdetkeeiueehfeevveduteekleeuheegudehhfenucffohhmrghinhep phhoshhtghhrvghsqhhlrdhorhhgnecukfhppeejhedrudejvddrhedrvdefudenucevlh hushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdr khhlrghvvghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Received: from [192.168.1.3] (75-172-5-231.tukw.qwest.net [75.172.5.231]) by mail.messagingengine.com (Postfix) with ESMTPA id 0B1F630600B2; Mon, 13 Jul 2020 10:10:23 -0400 (EDT) Subject: Re: Doubt in mvcc To: Rama Krishnan , pgsql-general@postgresql.org References: From: Adrian Klaver Message-ID: <3a94bd23-871c-571b-7f2c-adf9ee405f56@aklaver.com> Date: Mon, 13 Jul 2020 07:10:23 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 7/13/20 12:31 AM, Rama Krishnan wrote: > > > Hi sir, > > I m preparing for interview one of the recruiter asked me mvcc drawbacks > as i told due to mvcc it use more space and need to perform maintenance > activity. > > Another one is the same data causes an update conflict because two > different transactions can update the same version of the row. >  he told its wrong, kindly tell me will you please tell me its correct > or wrong? It depends on what you are calling a conflict and what isolation level you are in. Take a look at this section of the docs: https://www.postgresql.org/docs/12/transaction-iso.html > > > Thanks > RK -- Adrian Klaver adrian.klaver@aklaver.com