pgsql: localbuf: Introduce InvalidateLocalBuffer() - Mailing list pgsql-committers

From Andres Freund
Subject pgsql: localbuf: Introduce InvalidateLocalBuffer()
Date
Msg-id E1ttda0-002gW1-0v@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
localbuf: Introduce InvalidateLocalBuffer()

Previously, there were three copies of this code, two of them
identical. There's no good reason for that.

This change is nice on its own, but the main motivation is the AIO patchset,
which needs to add extra checks the deduplicated code, which of course is
easier if there is only one version.

Reviewed-by: Melanie Plageman <melanieplageman@gmail.com>
Discussion: https://postgr.es/m/CAAKRu_b9anbWzEs5AAF9WCvcEVmgz-1AkHSQ-CLLy-p7WHzvFw@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/0762a151b0e018944694ccac07e521adcdf7a06f

Modified Files
--------------
src/backend/storage/buffer/localbuf.c | 92 +++++++++++++++++------------------
1 file changed, 44 insertions(+), 48 deletions(-)


pgsql-committers by date:

Previous
From: Andrew Dunstan
Date:
Subject: pgsql: Silence perl critic
Next
From: Michael Paquier
Date:
Subject: pgsql: pg_createsubscriber: Remove some code bloat in the atexit() call