Re: Compressed TOAST Slicing - Mailing list pgsql-hackers

From Andrey Borodin
Subject Re: Compressed TOAST Slicing
Date
Msg-id 72B3A29C-E9B3-4CE1-B489-0568E1542929@yandex-team.ru
Whole thread Raw
In response to Re: Compressed TOAST Slicing  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers

> 9 апр. 2019 г., в 22:20, Andres Freund <andres@anarazel.de> написал(а):
>
> Just use memmove? It's usually as fast these days.
No, unfortunately, it is fixing things incompatible way.
In pglz side-effects of overlapping addresses are necessary, not the way memmove avoids it.

I.e. bytes
01234
  ^ copy here three bytes
memmove will give
01012
but we want
01010
    ^ this 0 is taken from result of overwrite by first byte move.

Best regards, Andrey Borodin.


pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: Compressed TOAST Slicing
Next
From: Tom Lane
Date:
Subject: Re: Compressed TOAST Slicing