pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fujii Masao <fujii@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: pgoutput: Initialize missing default for "origin" parameter.
Date: Wed, 16 Jul 2025 01:33:07 +0000
Message-ID: <E1ubr19-006VEn-0p@gemulon.postgresql.org> (raw)

pgoutput: Initialize missing default for "origin" parameter.

The pgoutput plugin initializes optional parameters like "binary" with
default values at the start of processing. However, the "origin"
parameter was previously missed and left without explicit initialization.

Although the PGOutputData struct, which holds these settings,
is zero-initialized at allocation (resulting in publish_no_origin field
for "origin" parameter being false by default), this default was not
set explicitly, unlike other parameters.

This commit adds explicit initialization of the "origin" parameter to
ensure consistency and clarity in how defaults are handled.

Author: Fujii Masao <masao.fujii@gmail.com>
Reviewed-by: Euler Taveira <euler@eulerto.com>
Discussion: https://postgr.es/m/d2790f10-238d-4cb5-a743-d9d2a9dd900f@oss.nttdata.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/b8341ae856f239c6d84c738e516267e890969d8a

Modified Files
--------------
src/backend/replication/pgoutput/pgoutput.c | 2 ++
1 file changed, 2 insertions(+)



Message-ID: <E1ubr19-006VEn-0p@gemulon.postgresql.org>
Permalink:  ../E1ubr19-006VEn-0p@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1ubr19-006VEn-0p@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: fujii@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: pgoutput: Initialize missing default for "origin" parameter.
  In-Reply-To: <E1ubr19-006VEn-0p@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox