[PATCH] buffile: ensure start offset is aligned with BLCKSZ - Mailing list pgsql-hackers

From Sasasu
Subject [PATCH] buffile: ensure start offset is aligned with BLCKSZ
Date
Msg-id a859a753-70f2-bb17-6830-19dbcad11c17@sasa.su
Whole thread Raw
Responses Re: [PATCH] buffile: ensure start offset is aligned with BLCKSZ
List 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

pgsql-hackers by date:

Previous
From: Bharath Rupireddy
Date:
Subject: Re: enhance pg_log_backend_memory_contexts() to log memory contexts of auxiliary processes
Next
From: Zhihong Yu
Date:
Subject: Re: [Proposal] Add foreign-server health checks infrastructure