> 12 янв. 2019 г., в 9:46, Michael Paquier <michael(at)paquier(dot)xyz> написал(а):
>
> Note that pg_attribute_aligned() cannot be used as that's not an
> option with clang and a couple of other comilers as far as I know, so
> the patch uses a simple set of placeholder buffers large enough to be
> aligned with the OS pages, which should be 4k for Linux by the way,
> and not set to BLCKSZ, but for WAL's O_DIRECT we don't really care
> much with such details.
Is it possible to avoid those memcopy's by aligning available buffers instead?
I couldn't understand this from the patch and this thread.
Best regards, Andrey Borodin.