pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Philippe Doussot <philippe.doussot@up.coop>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: rob stone <floriparob@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: update non-indexed value is slow if some non-related index/fk are enabled
Date: Tue, 7 Sep 2021 13:59:19 +0200
Message-ID: <3205dd81-1735-8a14-296e-06c6c883cc50@up.coop> (raw)
In-Reply-To: <CAKFQuwZXBg4C6CH7nJWO-C2qvjtkJq=MgvHN8_SYWydX7SNkng@mail.gmail.com>
References: <f5710d56-504f-46d9-986a-8ca03980363c@up.coop>
	<CAKFQuwZbx8v9Ect=FDk34FhJdCDw3ekQ=vDcKW==XaNTCiF5Cg@mail.gmail.com>
	<2875218.1630855266@sss.pgh.pa.us>
	<b67dcf853ff3ea29a60097737811e0186288362b.camel@gmail.com>
	<a0615923-0430-a31c-bef2-65580c30085e@up.coop>
	<CAKFQuwZXBg4C6CH7nJWO-C2qvjtkJq=MgvHN8_SYWydX7SNkng@mail.gmail.com>


On 06/09/2021 16:13, David G. Johnston wrote:
> On Monday, September 6, 2021, Philippe Doussot <philippe.doussot@up.coop <mailto:philippe.doussot@up.coop>> wrote:
>
>     I whas hopping the same optimisation as you: Write in place.
>
>
>
> How exactly would you expect “update-in-place” to work given the nature of MVCC?
>
> David J.

Yes right, it is probably not possible due to concurrency.

I don't know enough about it.

My expectations was naive


Again, thanks David for pointing me to the fact that the raw record was new on each update.


Philippe

view thread (9+ messages)  latest in thread

Message-ID: <3205dd81-1735-8a14-296e-06c6c883cc50@up.coop>
Permalink:  ../3205dd81-1735-8a14-296e-06c6c883cc50@up.coop/
Also on:    postgresql.org/message-id/3205dd81-1735-8a14-296e-06c6c883cc50@up.coop

 · 

reply

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: philippe.doussot@up.coop, david.g.johnston@gmail.com, floriparob@gmail.com, tgl@sss.pgh.pa.us
  Subject: Re: update non-indexed value is slow if some non-related index/fk are enabled
  In-Reply-To: <3205dd81-1735-8a14-296e-06c6c883cc50@up.coop>
  References: <f5710d56-504f-46d9-986a-8ca03980363c@up.coop> <CAKFQuwZbx8v9Ect=FDk34FhJdCDw3ekQ=vDcKW==XaNTCiF5Cg@mail.gmail.com> <2875218.1630855266@sss.pgh.pa.us> <b67dcf853ff3ea29a60097737811e0186288362b.camel@gmail.com> <a0615923-0430-a31c-bef2-65580c30085e@up.coop> <CAKFQuwZXBg4C6CH7nJWO-C2qvjtkJq=MgvHN8_SYWydX7SNkng@mail.gmail.com> <3205dd81-1735-8a14-296e-06c6c883cc50@up.coop>

* 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