From a1b8aa1e4eec520ed8f11c3d134a7a866358d39a Mon Sep 17 00:00:00 2001 From: Noah Misch Date: Sat, 12 Dec 2020 21:38:36 -0800 Subject: Use HASH_BLOBS for xidhash. This caused BufFile errors on buildfarm member sungazer, and SIGSEGV was possible. Conditions for reaching those symptoms were more frequent on big-endian systems. Discussion: https://postgr.es/m/20201129214441.GA691200@rfd.leadboat.com --- src/backend/replication/logical/worker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/backend/replication') diff --git a/src/backend/replication/logical/worker.c b/src/backend/replication/logical/worker.c index d29c0c5a559..38749393800 100644 --- a/src/backend/replication/logical/worker.c +++ b/src/backend/replication/logical/worker.c @@ -776,7 +776,7 @@ apply_handle_stream_start(StringInfo s) hash_ctl.entrysize = sizeof(StreamXidHash); hash_ctl.hcxt = ApplyContext; xidhash = hash_create("StreamXidHash", 1024, &hash_ctl, - HASH_ELEM | HASH_CONTEXT); + HASH_ELEM | HASH_BLOBS | HASH_CONTEXT); } /* open the spool file for this transaction */ -- cgit v1.2.3