Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb8341ae

Browse files
committed
pgoutput: Initialize missing default for "origin" parameter.
The pgoutput plugin initializes optional parameters like "binary" withdefault 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 fieldfor "origin" parameter being false by default), this default was notset explicitly, unlike other parameters.This commit adds explicit initialization of the "origin" parameter toensure 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
1 parentd842581 commitb8341ae

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎src/backend/replication/pgoutput/pgoutput.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,10 +297,12 @@ parse_output_parameters(List *options, PGOutputData *data)
297297
booltwo_phase_option_given= false;
298298
boolorigin_option_given= false;
299299

300+
/* Initialize optional parameters to defaults */
300301
data->binary= false;
301302
data->streaming=LOGICALREP_STREAM_OFF;
302303
data->messages= false;
303304
data->two_phase= false;
305+
data->publish_no_origin= false;
304306

305307
foreach(lc,options)
306308
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp