Re: Missing FIN_CRC32 calls in logical replication code - Mailing list pgsql-hackers

From Andres Freund
Subject Re: Missing FIN_CRC32 calls in logical replication code
Date
Msg-id 20141027115814.GA27636@awork2.anarazel.de
Whole thread Raw
In response to Missing FIN_CRC32 calls in logical replication code  (Heikki Linnakangas <hlinnakangas@vmware.com>)
Responses Re: Missing FIN_CRC32 calls in logical replication code
List pgsql-hackers
On 2014-10-27 12:51:44 +0200, Heikki Linnakangas wrote:
> replication/slot.c and replication/logical/snapbuild.c use a CRC on the
> physical slot and snapshot files. It uses the same algorithm as used e.g.
> for the WAL. However, they are not doing the finalization step, FIN_CRC32()
> on the calculated checksums. Not that it matters much, but it's a bit weird
> and inconsistent, and was probably an oversight.

Hm. Good catch - that's stupid. I wonder what to do about it. I'm
tempted to just add a comment about it to 9.4 and fix it on master as
changing it is essentially a catversion bump. Any objections to that?

Greetings,

Andres Freund

-- Andres Freund                       http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training &
Services



pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: TODO : Allow parallel cores to be used by vacuumdb [ WIP ]
Next
From: "Tomas Vondra"
Date:
Subject: Re: proposal: CREATE DATABASE vs. (partial) CHECKPOINT