diff options
author | Noah Misch <noah@leadboat.com> | 2020-12-12 21:38:36 -0800 |
---|---|---|
committer | Noah Misch <noah@leadboat.com> | 2020-12-12 21:38:36 -0800 |
commit | a1b8aa1e4eec520ed8f11c3d134a7a866358d39a (patch) | |
tree | 2d05cfb5af9db583201f10466bdb786ff525e561 /src/backend/replication/logical/worker.c | |
parent | 73aae4522b35125c4f9a506842a69336ec5d0f1b (diff) | |
download | postgresql-a1b8aa1e4eec520ed8f11c3d134a7a866358d39a.tar.gz postgresql-a1b8aa1e4eec520ed8f11c3d134a7a866358d39a.zip |
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
Diffstat (limited to 'src/backend/replication/logical/worker.c')
-rw-r--r-- | src/backend/replication/logical/worker.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |