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

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix code that doesn't work on machines with strict alignment
Date: 2010-04-20 22:55:04
Message-ID: 20100420225504.71A827541D0@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2010-04-20 23:48:50 pgsql: Arrange for client authentication to occur before we select a
Previous Message Robert Haas 2010-04-20 11:15:07 pgsql: Rename standby_keep_segments to wal_keep_segments.