From 49936acf03c55458cdd52ded8433cb60dbb3250f Mon Sep 17 00:00:00 2001 From: Bharath Rupireddy Date: Fri, 19 Nov 2021 03:53:25 +0000 Subject: [PATCH v1] add missing errdetail for xlogreader allocation failure error --- src/backend/replication/logical/logical.c | 3 ++- src/backend/replication/walsender.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/backend/replication/logical/logical.c b/src/backend/replication/logical/logical.c index b7d9521576..10cbdea124 100644 --- a/src/backend/replication/logical/logical.c +++ b/src/backend/replication/logical/logical.c @@ -202,7 +202,8 @@ StartupDecodingContext(List *output_plugin_options, if (!ctx->reader) ereport(ERROR, (errcode(ERRCODE_OUT_OF_MEMORY), - errmsg("out of memory"))); + errmsg("out of memory"), + errdetail("Failed while allocating a WAL reading processor."))); ctx->reorder = ReorderBufferAllocate(); ctx->snapshot_builder = diff --git a/src/backend/replication/walsender.c b/src/backend/replication/walsender.c index 7950afb173..84915ed95b 100644 --- a/src/backend/replication/walsender.c +++ b/src/backend/replication/walsender.c @@ -681,7 +681,8 @@ StartReplication(StartReplicationCmd *cmd) if (!xlogreader) ereport(ERROR, (errcode(ERRCODE_OUT_OF_MEMORY), - errmsg("out of memory"))); + errmsg("out of memory"), + errdetail("Failed while allocating a WAL reading processor."))); /* * We assume here that we're logging enough information in the WAL for -- 2.25.1