Make some use of anonymous unions [reorderbuffer xact_time]
Peter Eisentraut <peter@eisentraut.org>
Author:
Peter Eisentraut <peter@eisentraut.org>
Date: 2025-09-30T10:35:50Z
Releases:
19 (unreleased)
Make some use of anonymous unions [reorderbuffer xact_time] Make some use of anonymous unions, which are allowed as of C11, as examples and encouragement for future code, and to test compilers. This commit changes the ReorderBufferTXN struct. Reviewed-by: Chao Li <li.evan.chao@gmail.com> Discussion: https://www.postgresql.org/message-id/flat/f00a9968-388e-4f8c-b5ef-5102e962d997%40eisentraut.org
Files
| Path | Change | +/− |
|---|---|---|
| contrib/test_decoding/test_decoding.c | modified | +6 −6 |
| src/backend/replication/logical/proto.c | modified | +7 −7 |
| src/backend/replication/logical/reorderbuffer.c | modified | +7 −7 |
| src/backend/replication/pgoutput/pgoutput.c | modified | +1 −1 |
| src/include/replication/reorderbuffer.h | modified | +1 −1 |
Discussion
- anonymous unions (C11) 15 messages · 2025-09-23 → 2026-01-21