Re: pgsql: Modify pg_basebackup to use a new COPY subprotocol for base back - Mailing list pgsql-hackers

From Robert Haas
Subject Re: pgsql: Modify pg_basebackup to use a new COPY subprotocol for base back
Date
Msg-id CA+TgmoYRfp8ye=AzmKewwnuzVijBya3aHv4tLgK9+mkAVuMOCg@mail.gmail.com
Whole thread Raw
In response to Re: pgsql: Modify pg_basebackup to use a new COPY subprotocol for base back  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: pgsql: Modify pg_basebackup to use a new COPY subprotocol for base back
List pgsql-hackers
On Tue, Jan 18, 2022 at 5:12 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Now that I re-read what you did, I believe you need both of
>
> -fsanitize=alignment -fsanitize-trap=alignment
>
> to enable those traps to happen.  That seems to be the case with
> Apple's clang, anyway.

Ah, I guess I copied and pasted the options wrong, or something.
Anyway, I have an idea how to fix this. I didn't realize that we were
going to read from the bbsink's buffer like this, and it's not
properly aligned for that. I'll jigger things around to fix that.

-- 
Robert Haas
EDB: http://www.enterprisedb.com



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: pgsql: Modify pg_basebackup to use a new COPY subprotocol for base back
Next
From: James Coleman
Date:
Subject: Re: Add last commit LSN to pg_last_committed_xact()