Adjust the description of OutputPluginCallbacks in pg-doc

Started by wangw.fnst@fujitsu.comalmost 4 years ago5 messageshackers
Jump to latest
#1wangw.fnst@fujitsu.com
wangw.fnst@fujitsu.com

Hi,

When I was reading the "Logical Decoding Output Plugins" chapter in pg-doc [1]https://www.postgresql.org/docs/devel/logicaldecoding-output-plugin.html,
I think in the summary section, only the callback message_cb is not described
whether it is required or optional, and the description of callback
stream_prepare_cb seems inaccurate.

And after the summary section, I think only the callback stream_xxx_cb section
and the callback truncate_cb section are not described this tag (are they
required or optional).

I think we could improve these to be more reader friendly. So I tried to write
a patch for these and attach it.

Any thoughts?

Regards,
Wang Wei

[1]: https://www.postgresql.org/docs/devel/logicaldecoding-output-plugin.html

Attachments:

v1-0001-Adjust-the-description-of-OutputPluginCallbacks-i.patchapplication/octet-stream; name=v1-0001-Adjust-the-description-of-OutputPluginCallbacks-i.patchDownload+26-23
#2Amit Kapila
amit.kapila16@gmail.com
In reply to: wangw.fnst@fujitsu.com (#1)
Re: Adjust the description of OutputPluginCallbacks in pg-doc

On Wed, Jan 11, 2023 at 4:20 PM wangw.fnst@fujitsu.com
<wangw.fnst@fujitsu.com> wrote:

When I was reading the "Logical Decoding Output Plugins" chapter in pg-doc [1],
I think in the summary section, only the callback message_cb is not described
whether it is required or optional, and the description of callback
stream_prepare_cb seems inaccurate.

And after the summary section, I think only the callback stream_xxx_cb section
and the callback truncate_cb section are not described this tag (are they
required or optional).

I think we could improve these to be more reader friendly. So I tried to write
a patch for these and attach it.

Any thoughts?

This looks mostly good to me. I have made minor adjustments in the
attached. Do those make sense to you?

--
With Regards,
Amit Kapila.

Attachments:

v2-0001-Improve-the-description-of-Output-Plugin-Callback.patchapplication/octet-stream; name=v2-0001-Improve-the-description-of-Output-Plugin-Callback.patchDownload+27-24
#3Amit Kapila
amit.kapila16@gmail.com
In reply to: Amit Kapila (#2)
Re: Adjust the description of OutputPluginCallbacks in pg-doc

On Thu, Jan 19, 2023 at 4:47 PM Amit Kapila <amit.kapila16@gmail.com> wrote:

On Wed, Jan 11, 2023 at 4:20 PM wangw.fnst@fujitsu.com
<wangw.fnst@fujitsu.com> wrote:

When I was reading the "Logical Decoding Output Plugins" chapter in pg-doc [1],
I think in the summary section, only the callback message_cb is not described
whether it is required or optional, and the description of callback
stream_prepare_cb seems inaccurate.

And after the summary section, I think only the callback stream_xxx_cb section
and the callback truncate_cb section are not described this tag (are they
required or optional).

I think we could improve these to be more reader friendly. So I tried to write
a patch for these and attach it.

Any thoughts?

This looks mostly good to me. I have made minor adjustments in the
attached. Do those make sense to you?

I forgot to mention that I intend to commit this only on HEAD as this
is a doc improvement patch.

--
With Regards,
Amit Kapila.

#4wangw.fnst@fujitsu.com
wangw.fnst@fujitsu.com
In reply to: Amit Kapila (#2)
RE: Adjust the description of OutputPluginCallbacks in pg-doc

On Thurs, Jan 19, 2023 at 19:18 PM Amit Kapila <amit.kapila16@gmail.com> wrote:

On Wed, Jan 11, 2023 at 4:20 PM wangw.fnst@fujitsu.com
<wangw.fnst@fujitsu.com> wrote:

When I was reading the "Logical Decoding Output Plugins" chapter in pg-doc

[1],

I think in the summary section, only the callback message_cb is not described
whether it is required or optional, and the description of callback
stream_prepare_cb seems inaccurate.

And after the summary section, I think only the callback stream_xxx_cb

section

and the callback truncate_cb section are not described this tag (are they
required or optional).

I think we could improve these to be more reader friendly. So I tried to write
a patch for these and attach it.

Any thoughts?

This looks mostly good to me. I have made minor adjustments in the
attached. Do those make sense to you?

Thanks for your improvement.
It makes sense to me.

Regards,
Wang Wei

#5Amit Kapila
amit.kapila16@gmail.com
In reply to: wangw.fnst@fujitsu.com (#4)
Re: Adjust the description of OutputPluginCallbacks in pg-doc

On Fri, Jan 20, 2023 at 8:03 AM wangw.fnst@fujitsu.com
<wangw.fnst@fujitsu.com> wrote:

On Thurs, Jan 19, 2023 at 19:18 PM Amit Kapila <amit.kapila16@gmail.com> wrote:

On Wed, Jan 11, 2023 at 4:20 PM wangw.fnst@fujitsu.com
<wangw.fnst@fujitsu.com> wrote:

When I was reading the "Logical Decoding Output Plugins" chapter in pg-doc

[1],

I think in the summary section, only the callback message_cb is not described
whether it is required or optional, and the description of callback
stream_prepare_cb seems inaccurate.

And after the summary section, I think only the callback stream_xxx_cb

section

and the callback truncate_cb section are not described this tag (are they
required or optional).

I think we could improve these to be more reader friendly. So I tried to write
a patch for these and attach it.

Any thoughts?

This looks mostly good to me. I have made minor adjustments in the
attached. Do those make sense to you?

Thanks for your improvement.
It makes sense to me.

Pushed.

--
With Regards,
Amit Kapila.