public inbox for [email protected]
help / color / mirror / Atom feedFrom: Álvaro Herrera <[email protected]>
Subject: [PATCH 7/9] no need for palloc0 here -- simple palloc is enough
Date: Thu, 12 Mar 2026 16:13:49 +0100
---
src/backend/replication/pgoutput_repack/pgoutput_repack.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c
index 61cd7c52ae6..73aa6f0589c 100644
--- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c
+++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c
@@ -197,8 +197,8 @@ store_change(LogicalDecodingContext *ctx, Relation relation,
bool *isnull;
desc = RelationGetDescr(relation);
- attrs = palloc0_array(Datum, desc->natts);
- isnull = palloc0_array(bool, desc->natts);
+ attrs = palloc_array(Datum, desc->natts);
+ isnull = palloc_array(bool, desc->natts);
heap_deform_tuple(tuple, desc, attrs, isnull);
--
2.47.3
--pnppmxqkefjd4hu2
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
filename*0="0008-XXX-devel-comment-heap_deform_tuple-slot_deform_tupl.noc";
filename*1="fbot.txt"
view thread (775+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected]
Subject: Re: [PATCH 7/9] no need for palloc0 here -- simple palloc is enough
In-Reply-To: <no-message-id-1568736@localhost>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox