Обсуждение: pgsql: Fix code that doesn't work on machines with strict alignment

Поиск
Список
Период
Сортировка

pgsql: Fix code that doesn't work on machines with strict alignment

От
tgl@postgresql.org (Tom Lane)
Дата:
Log Message:
-----------
Fix code that doesn't work on machines with strict alignment requirements:
must use memcpy here rather than struct assignment.

In passing, rearrange some randomly-ordered declarations to be a tad less
random.

Modified Files:
--------------
    pgsql/src/backend/replication:
        walreceiver.c (r1.9 -> r1.10)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/replication/walreceiver.c?r1=1.9&r2=1.10)