agora inbox for [email protected]help / color / mirror / Atom feed
Re: Standby trying "restore_command" before local WAL 972+ messages / 4 participants [nested] [flat]
* Re: Standby trying "restore_command" before local WAL @ 2018-08-03 12:42 Alexander Kukushkin <[email protected]> 0 siblings, 1 reply; 972+ messages in thread From: Alexander Kukushkin @ 2018-08-03 12:42 UTC (permalink / raw) To: Stephen Frost <[email protected]>; +Cc: Sergei Kornilov <[email protected]>; Emre Hasegeli <[email protected]>; pgsql-hackers; [email protected] <[email protected]>; Gürkan Gür <[email protected]>; Raimund Schlichtiger <[email protected]>; Tomas Vondra <[email protected]>; Bernhard Schrader <[email protected]>; Simon Riggs <[email protected]>; Vik Fearing <[email protected]> Hi, 2018-07-31 20:25 GMT+02:00 Stephen Frost <[email protected]>: > > > There's still a question here, at least from my perspective, as to which > is actually going to be faster to perform recovery based off of. A good > restore command, which pre-fetches the WAL in parallel and gets it local > and on the same filesystem, meaning that the restore_command only has to > execute essentially a 'mv' and return back to PG for the next WAL file, > is really rather fast, compared to streaming that same data over the > network with a single TCP connection to the primary. Of course, there's > a lot of variables there and it depends on the network speed between the > various pieces, but I've certainly had cases where a replica catches up > much faster using restore command than streaming from the primary. Sure, mv is incredibly fast, but not calling external script/binary at all is still faster than calling it. What about the following cases? 1. replica host crashed, and in pg_wal we have a few thousands WAL files. 2. we are creating a new replica with pg_basebackup -X stream, it takes a long time and again leaves a few thousands WAL files. In both cases, if there is no restore_command in the recovery.conf, postgres will happily read WAL files from pg_wal and only when there is nothing left it will try to start streaming. But, if restore_command is defined, it will always call the restore_command, for every single WAL file it wants to restore. If the restore_command exits with non zero exit code, postgres is happily restoring the file from pg_wal! And, only if the file is not there or not valid, postgres is trying to start streaming. ^ permalink raw reply [nested|flat] 972+ messages in thread
* Re: Standby trying "restore_command" before local WAL @ 2018-08-06 16:01 Stephen Frost <[email protected]> parent: Alexander Kukushkin <[email protected]> 0 siblings, 1 reply; 972+ messages in thread From: Stephen Frost @ 2018-08-06 16:01 UTC (permalink / raw) To: Alexander Kukushkin <[email protected]>; +Cc: Sergei Kornilov <[email protected]>; Emre Hasegeli <[email protected]>; pgsql-hackers; [email protected] <[email protected]>; Gürkan Gür <[email protected]>; Raimund Schlichtiger <[email protected]>; Tomas Vondra <[email protected]>; Bernhard Schrader <[email protected]>; Simon Riggs <[email protected]>; Vik Fearing <[email protected]> Greetings, * Alexander Kukushkin ([email protected]) wrote: > 2018-07-31 20:25 GMT+02:00 Stephen Frost <[email protected]>: > > There's still a question here, at least from my perspective, as to which > > is actually going to be faster to perform recovery based off of. A good > > restore command, which pre-fetches the WAL in parallel and gets it local > > and on the same filesystem, meaning that the restore_command only has to > > execute essentially a 'mv' and return back to PG for the next WAL file, > > is really rather fast, compared to streaming that same data over the > > network with a single TCP connection to the primary. Of course, there's > > a lot of variables there and it depends on the network speed between the > > various pieces, but I've certainly had cases where a replica catches up > > much faster using restore command than streaming from the primary. > > Sure, mv is incredibly fast, but not calling external script/binary at > all is still faster than calling it. I don't believe I was disputing that, apologies if it came across that way. Certainly, reading files directly without going through restore command is going to be faster than having to call restore command. The point I was attempting to make is that using restore command might be (and in some cases, certainly is) faster than streaming from a primary. > What about the following cases? > 1. replica host crashed, and in pg_wal we have a few thousands WAL files. If this is the case then the replica was very far behind on replay, presumably, and in some of those cases rebuilding the replica might very well be faster than replaying all of that WAL. This case does sound like it should be alright though. > 2. we are creating a new replica with pg_basebackup -X stream, it > takes a long time and again leaves a few thousands WAL files. This is certainly typical and also should be a safe case and therefore seems like a good case where we'd want to be able to tell the system to use what's in pg_wal first- perhaps that could be an option in recovery.conf which pg_basebackup and other tools that are managing the pg_wal directory and ensuring that all the WAL there is valid would be able to write into the recovery.conf. > In both cases, if there is no restore_command in the recovery.conf, > postgres will happily read WAL files from pg_wal and only when there > is nothing left it will try to start streaming. > > But, if restore_command is defined, it will always call the > restore_command, for every single WAL file it wants to restore. > If the restore_command exits with non zero exit code, postgres is > happily restoring the file from pg_wal! > And, only if the file is not there or not valid, postgres is trying to > start streaming. Yeah, I have to agree that it's not great that we don't seem to be entirely consistent here, as Robert pointed out up-thread. > >From my point of view, there is no difference between having no > restore_command and relying only on streaming replication and having > the restore_comman which always fails. > Therefore I don't really understand why we stick to the > "restore_command => pg_wal => streaming" and why it is not possible to > change it to "pg_wal => restore_command => streaming" or maybe even > (pg_wal => streaming => restore_command). I don't think I disagreed anywhere about having the option. There's a good point to be made that if we can figure out what the right thing to do is then we should just do that instead of having an option for it. If there's any case where the pg_wal directory might have invalid WAL to be replayed over top of the current cluster, though, then we shouldn't just be using that WAL and instead should be asking the user to let us know if the WAL is ok to use. If we can know when the WAL is invalid and ignore using it in those cases, then we should just go ahead and do that, but I'm unconvinced that's actually the case in a situation such as what David Steele described in his scenario #2. > I am not sure about the last option, but in any case. before going to > some remote place, postgres should try to find (and try to replay) the > WAL file in the pg_wal. Only if we know that it's valid to be replayed over the current cluster. Thanks! Stephen Attachments: [application/pgp-signature] signature.asc (819B, ../../[email protected]/2-signature.asc) download ^ permalink raw reply [nested|flat] 972+ messages in thread
* Re: Standby trying "restore_command" before local WAL @ 2018-08-06 17:07 Jaime Casanova <[email protected]> parent: Stephen Frost <[email protected]> 0 siblings, 1 reply; 972+ messages in thread From: Jaime Casanova @ 2018-08-06 17:07 UTC (permalink / raw) To: Stephen Frost <[email protected]>; +Cc: [email protected]; [email protected]; [email protected]; pgsql-hackers; [email protected]; [email protected]; [email protected]; Tomas Vondra <[email protected]>; [email protected]; Simon Riggs <[email protected]>; [email protected] On Mon, 6 Aug 2018 at 11:01, Stephen Frost <[email protected]> wrote: > > > What about the following cases? > > 1. replica host crashed, and in pg_wal we have a few thousands WAL files. > > If this is the case then the replica was very far behind on replay, > presumably, and in some of those cases rebuilding the replica might > very well be faster than replaying all of that WAL. This case does > sound like it should be alright though. > it could also be a delayed standby, and in that case we will have in the replica lots of valid -delayed apply on porpouse, not on master anymore- WALs, restarting from archive in that case is a poor solution... -- Jaime Casanova www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services ^ permalink raw reply [nested|flat] 972+ messages in thread
* Re: Standby trying "restore_command" before local WAL @ 2018-08-06 17:12 Stephen Frost <[email protected]> parent: Jaime Casanova <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Stephen Frost @ 2018-08-06 17:12 UTC (permalink / raw) To: Jaime Casanova <[email protected]>; +Cc: [email protected]; [email protected]; [email protected]; pgsql-hackers; [email protected]; [email protected]; [email protected]; Tomas Vondra <[email protected]>; [email protected]; Simon Riggs <[email protected]>; [email protected] Greetings, * Jaime Casanova ([email protected]) wrote: > On Mon, 6 Aug 2018 at 11:01, Stephen Frost <[email protected]> wrote: > > > What about the following cases? > > > 1. replica host crashed, and in pg_wal we have a few thousands WAL files. > > > > If this is the case then the replica was very far behind on replay, > > presumably, and in some of those cases rebuilding the replica might > > very well be faster than replaying all of that WAL. This case does > > sound like it should be alright though. > > it could also be a delayed standby, and in that case we will have in > the replica lots of valid -delayed apply on porpouse, not on master > anymore- WALs, restarting from archive in that case is a poor > solution... That's true but it doesn't really change the base question that wasn't discussed in your response- we have to *know* if the pg_wal directory is completely valid and can be used (or we have some way of knowing what can be used and what can't be) if we're going to use it. I realize that's not how things work today and that strikes me as an issue that we need to fix. If we can fix that by deciding that our current checks are sufficient regardless of what's in pg_wal, then fine, let's always use pg_wal first and only after we've used as much as we're able go to restore command, but I haven't seen anyone demonstrate that to be the case so far. If we can come up with some way to know if pg_wal is safe or not, great, then once we've got that implemented we can use it. If there's no way to do that, then let's push back on the user to tell us if it's safe or not. Thanks! Stephen Attachments: [application/pgp-signature] signature.asc (819B, ../../[email protected]/2-signature.asc) download ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 972+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 972+ messages in thread
end of thread, other threads:[~2026-03-12 15:12 UTC | newest] Thread overview: 972+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2018-08-03 12:42 Re: Standby trying "restore_command" before local WAL Alexander Kukushkin <[email protected]> 2018-08-06 16:01 ` Stephen Frost <[email protected]> 2018-08-06 17:07 ` Jaime Casanova <[email protected]> 2018-08-06 17:12 ` Stephen Frost <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]>
This inbox is served by agora; see mirroring instructions for how to clone and mirror all data and code used for this inbox