diff options
| author | Álvaro Herrera <alvherre@kurilemu.de> | 2025-11-06 19:08:29 +0100 |
|---|---|---|
| committer | Álvaro Herrera <alvherre@kurilemu.de> | 2025-11-06 19:08:29 +0100 |
| commit | 06edbed478625829b19c35d0c17d805be588afa6 (patch) | |
| tree | cd0b3f103378c5372f3c83dc75e4a003dca5f4ab /src/backend/access/gist | |
| parent | 8fe7700b7eafe95d20244c5c85567f1573669e23 (diff) | |
Introduce XLogRecPtrIsValid()
XLogRecPtrIsInvalid() is inconsistent with the affirmative form of
macros used for other datatypes, and leads to awkward double negatives
in a few places. This commit introduces XLogRecPtrIsValid(), which
allows code to be written more naturally.
This patch only adds the new macro. XLogRecPtrIsInvalid() is left in
place, and all existing callers remain untouched. This means all
supported branches can accept hypothetical bug fixes that use the new
macro, and at the same time any code that compiled with the original
formulation will continue to silently compile just fine.
Author: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Backpatch-through: 13
Discussion: https://postgr.es/m/aQB7EvGqrbZXrMlg@ip-10-97-1-34.eu-west-3.compute.internal
Diffstat (limited to 'src/backend/access/gist')
0 files changed, 0 insertions, 0 deletions
