Thread: pgsql: Remove unportable use of anonymous unions from reorderbuffer.h.

pgsql: Remove unportable use of anonymous unions from reorderbuffer.h.

From
Tom Lane
Date:
Remove unportable use of anonymous unions from reorderbuffer.h.

In b89e151054a I had assumed it was ok to use anonymous unions as
struct members, but while a longstanding extension in many compilers,
it's only been standardized in C11.

To fix, remove one of the anonymous unions which tried to hide some
implementation specific enum values and give the other a name. The
latter unfortunately requires changes in output plugins, but since the
feature has only been added a few days ago...

Andres Freund

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/ea177a3ba7a7901f6467eadb0a407e03d46462fd

Modified Files
--------------
contrib/test_decoding/test_decoding.c           |   18 +-
src/backend/replication/logical/decode.c        |   28 +--
src/backend/replication/logical/reorderbuffer.c |  283 +++++++++++------------
src/include/replication/reorderbuffer.h         |   39 ++--
4 files changed, 186 insertions(+), 182 deletions(-)