Be more specific about OOM in XLogReaderAllocate A couple of spots can benefit from an added errdetail(), which matches what we were already doing in other places; and those that cannot withstand errdetail() can get a more descriptive primary message.
Author: Bharath Rupireddy <[email protected]> Reviewed-by: Daniel Gustafsson <[email protected]> Reviewed-by: Julien Rouhaud <[email protected]> Discussion: https://postgr.es/m/CALj2ACV+cX1eM03GfcA=zmlxh5fsn1x1aujlz3yus1dupsb...@mail.gmail.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/2fed48f48f7f2f7a6d6f6d020f046efe3c249828 Modified Files -------------- src/backend/access/transam/xlog.c | 2 +- src/backend/replication/logical/logical.c | 3 ++- src/backend/replication/walsender.c | 3 ++- src/bin/pg_rewind/parsexlog.c | 6 +++--- src/bin/pg_waldump/pg_waldump.c | 2 +- 5 files changed, 9 insertions(+), 7 deletions(-)
