[PATCH] buffile: ensure start offset is aligned with BLCKSZ

From: Sasasu <i(at)sasa(dot)su>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org, ah(at)cybertec(dot)at, sfrost(at)snowman(dot)net
Subject: [PATCH] buffile: ensure start offset is aligned with BLCKSZ
Date: 2021-11-28 15:37:18
Message-ID: a859a753-70f2-bb17-6830-19dbcad11c17@sasa.su
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi hackers,

there are a very long discuss about TDE, and we agreed on that if the
temporary file I/O can be aligned to some fixed size, it will be easier
to use some kind of encryption algorithm.

discuss:
https://www.postgresql.org/message-id/20211025155814.GD20998%40tamriel.snowman.net

This patch adjust file->curOffset and file->pos before the real IO to
ensure the start offset is aligned.

Attachment Content-Type Size
buffile-ensure-start-offset-is-aligned-with-BLCKSZ-v1.patch text/x-patch 2.2 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message PG Bug reporting form 2021-11-28 18:00:01 BUG #17302: gist index prevents insertion of some data
Previous Message Bharath Rupireddy 2021-11-28 13:44:49 Re: enhance pg_log_backend_memory_contexts() to log memory contexts of auxiliary processes