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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Remove unportable use of anonymous unions from reorderbuffer.h.
Дата
Msg-id E1WM2rn-0002U6-4n@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix contrib/postgres_fdw to handle multiple join conditions prop
Следующее
От: Bruce Momjian
Дата:
Сообщение: pgsql: docs: improve TABLE command by showing supported clauses