agora inbox for [email protected]help / color / mirror / Atom feed
[PATCH v14 7/7] doc: Add Collation Versions section. 969+ messages / 2 participants [nested] [flat]
* [PATCH v14 7/7] doc: Add Collation Versions section. @ 2020-03-11 02:01 Thomas Munro <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Thomas Munro @ 2020-03-11 02:01 UTC (permalink / raw) Supply a brief introduction to collation version concepts. Author: Thomas Munro Reviewed-by: Julien Rouhaud Discussion: https://postgr.es/m/CAEepm%3D0uEQCpfq_%2BLYFBdArCe4Ot98t1aR4eYiYTe%3DyavQygiQ%40mail.gmail.com --- doc/src/sgml/charset.sgml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/doc/src/sgml/charset.sgml b/doc/src/sgml/charset.sgml index 20cdfabd7b..d4aa300c5a 100644 --- a/doc/src/sgml/charset.sgml +++ b/doc/src/sgml/charset.sgml @@ -936,6 +936,41 @@ CREATE COLLATION ignore_accents (provider = icu, locale = 'und-u-ks-level1-kc-tr </para> </sect3> </sect2> + + <sect2 id="collation-versions"> + <title>Collation Versions</title> + + <para> + The ordering defined by a collation is not necessarily fixed over time. + If a collation changes for any reason, persistent data structures such as + b-trees that depend on a stable ordering of text might be corrupted. + <productname>PostgreSQL</productname> defends against this by recording + the current version of each referenced collation for any index that + depends on it in the + <link linkend="catalog-pg-depend"><structname>pg_depend</structname></link> + catalog, if the collation provider makes it available. If the provider + later begins to report a different version, a warning will be reported + when the index is accessed, until either the <xref linkend="sql-reindex"/> + or the <xref linkend="sql-alterindex"/> command is used to update the + version. + </para> + <para> + Version information is available for collations from the + <literal>icu</literal> provider on all operating systems. For the + <literal>libc</literal> provider, versions are currently only available + on systems using the GNU C library (most Linux systems). + </para> + + <note> + <para> + When using the GNU C library for collations, the C library's version + is used as a proxy for the collation version. Many Linux distributions + change collation definitions only when upgrading the C library, but this + approach is imperfect as maintainers are free to back-port newer + collation definitions to older C library releases. + </para> + </note> + </sect2> </sect1> <sect1 id="multibyte"> -- 2.20.1 --wRRV7LY7NUeQGEoC-- ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
* [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length @ 2026-03-12 15:12 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 969+ messages in thread From: Álvaro Herrera @ 2026-03-12 15:12 UTC (permalink / raw) --- src/backend/commands/cluster.c | 2 +- src/backend/replication/pgoutput_repack/pgoutput_repack.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 29440fb75cd..244843ee1cf 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -3113,7 +3113,7 @@ restore_tuple(BufFile *file, Relation relation, MemoryContext cxt) uint32 t_len; HeapTuple tup; MemoryContext oldcxt; - uint32 natt_ext; + int natt_ext; List *attrs_ext = NIL; oldcxt = MemoryContextSwitchTo(cxt); diff --git a/src/backend/replication/pgoutput_repack/pgoutput_repack.c b/src/backend/replication/pgoutput_repack/pgoutput_repack.c index 79fc611b9ff..61cd7c52ae6 100644 --- a/src/backend/replication/pgoutput_repack/pgoutput_repack.c +++ b/src/backend/replication/pgoutput_repack/pgoutput_repack.c @@ -175,7 +175,7 @@ store_change(LogicalDecodingContext *ctx, Relation relation, BufFile *file; char kind_byte = (char) kind; List *attrs_ext = NIL; - uint32 natt_ext; + int natt_ext; dstate = (RepackDecodingState *) ctx->output_writer_private; file = dstate->file; @@ -237,14 +237,12 @@ store_change(LogicalDecodingContext *ctx, Relation relation, Assert(VARATT_IS_EXTERNAL_ONDISK(varlena_pointer)); } } - natt_ext = list_length(attrs_ext); } - else - natt_ext = 0; /* Write the number of external attributes. */ + natt_ext = list_length(attrs_ext); BufFileWrite(file, &natt_ext, sizeof(natt_ext)); - /* ... and the attributes themselves, if there are some. */ + /* ... and the attributes themselves, if any */ foreach_ptr(varlena, attr_val, attrs_ext) { varlena *ext_val; -- 2.47.3 --pnppmxqkefjd4hu2 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0007-no-need-for-palloc0-here-simple-palloc-is-enough.nocfbot.txt" ^ permalink raw reply [nested|flat] 969+ messages in thread
end of thread, other threads:[~2026-03-12 15:12 UTC | newest] Thread overview: 969+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2020-03-11 02:01 [PATCH v14 7/7] doc: Add Collation Versions section. Thomas Munro <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email protected]> 2026-03-12 15:12 [PATCH 6/9] use 'int' instead of 'uint32' for the result of list_length Álvaro Herrera <[email 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