From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Rama Krishnan <raghuldrag@gmail.com>
To: pgsql-general@postgresql.org
Subject: Re: Doubt in mvcc
Date: Tue, 14 Jul 2020 08:50:40 +0200
Message-ID: <c754e62e3b88aeef133ef9816227bec80f335230.camel@cybertec.at> (raw)
In-Reply-To: <CAJWX+EP+gabLLBDExnXhi=JNre=xPRo5REAku7FXR6VZFKBBKg@mail.gmail.com>
References: <CAJWX+EMdFRBP3995Swt6FWgUvO7mvhAwa+2nBXsTmaWeNaB=jQ@mail.gmail.com>
<CAJWX+EP+gabLLBDExnXhi=JNre=xPRo5REAku7FXR6VZFKBBKg@mail.gmail.com>
On Mon, 2020-07-13 at 13:01 +0530, Rama Krishnan wrote:
> 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.
Yes. Generally speaking, you have to pay a price for keeping old versions of the
data around, no matter how you implement it.
> 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?
There is always a certain version (the latest) that can be updated, so this is
the same no matter if you have MVCC or not: if two sessions want to update the same
row, one has to wait until the other is done.
Yours,
Laurenz Albe
--
Cybertec | https://www.cybertec-postgresql.com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: laurenz.albe@cybertec.at, raghuldrag@gmail.com
Subject: Re: Doubt in mvcc
In-Reply-To: <c754e62e3b88aeef133ef9816227bec80f335230.camel@cybertec.at>
References: <CAJWX+EMdFRBP3995Swt6FWgUvO7mvhAwa+2nBXsTmaWeNaB=jQ@mail.gmail.com> <CAJWX+EP+gabLLBDExnXhi=JNre=xPRo5REAku7FXR6VZFKBBKg@mail.gmail.com> <c754e62e3b88aeef133ef9816227bec80f335230.camel@cybertec.at>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox