Make some use of anonymous unions [plpython]
authorPeter Eisentraut <peter@eisentraut.org>
Tue, 30 Sep 2025 10:24:57 +0000 (12:24 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Tue, 30 Sep 2025 10:35:50 +0000 (12:35 +0200)
commit8b7f27fef3e225e0b34f0d9f1a9f20770b72d01c
tree78a575cc4233a93e591ac0475db58d4efd572737
parentefcd5199d8cb8e5098f79b38d0c46004e69d1a46
Make some use of anonymous unions [plpython]

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 some structures in plpython.

Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/f00a9968-388e-4f8c-b5ef-5102e962d997%40eisentraut.org
src/pl/plpython/plpy_exec.c
src/pl/plpython/plpy_typeio.c
src/pl/plpython/plpy_typeio.h