Fix comments atop pg_get_replication_slots

Started by sirisha chamarthiabout 4 years ago4 messageshackers
Jump to latest
#1sirisha chamarthi
sirichamarthi22@gmail.com

Hi Hackers,

The comments atop seem to indicate that it is only showing active
replication slots. The comment is ambiguous as it also shows all the slots
including lost and inactive slots. Attached a small patch to fix it.

Thanks,
Sirisha

Attachments:

0001-Fix-atop-pg_get_replication_slots-function-to-reflec.patchapplication/octet-stream; name=0001-Fix-atop-pg_get_replication_slots-function-to-reflec.patchDownload+1-2
#2Amit Kapila
amit.kapila16@gmail.com
In reply to: sirisha chamarthi (#1)
Re: Fix comments atop pg_get_replication_slots

On Mon, Nov 21, 2022 at 12:45 PM sirisha chamarthi
<sirichamarthi22@gmail.com> wrote:

Hi Hackers,

The comments atop seem to indicate that it is only showing active replication slots. The comment is ambiguous as it also shows all the slots including lost and inactive slots. Attached a small patch to fix it.

I agree that it is a bit confusing. How about "SQL SRF showing all
replication slots that currently exist on the database cluster"?

--
With Regards,
Amit Kapila.

#3sirisha chamarthi
sirichamarthi22@gmail.com
In reply to: Amit Kapila (#2)
Re: Fix comments atop pg_get_replication_slots

Amit, thanks for looking into this!

On Sun, Nov 20, 2022 at 11:38 PM Amit Kapila <amit.kapila16@gmail.com>
wrote:

On Mon, Nov 21, 2022 at 12:45 PM sirisha chamarthi
<sirichamarthi22@gmail.com> wrote:

Hi Hackers,

The comments atop seem to indicate that it is only showing active

replication slots. The comment is ambiguous as it also shows all the slots
including lost and inactive slots. Attached a small patch to fix it.

I agree that it is a bit confusing. How about "SQL SRF showing all
replication slots that currently exist on the database cluster"?

Looks good to me. Attached a patch for the same.

Show quoted text

--
With Regards,
Amit Kapila.

Attachments:

0002-Fix-atop-pg_get_replication_slots-function-to-reflec.patchapplication/octet-stream; name=0002-Fix-atop-pg_get_replication_slots-function-to-reflec.patchDownload+2-2
#4Amit Kapila
amit.kapila16@gmail.com
In reply to: sirisha chamarthi (#3)
Re: Fix comments atop pg_get_replication_slots

On Mon, Nov 21, 2022 at 1:22 PM sirisha chamarthi
<sirichamarthi22@gmail.com> wrote:

Looks good to me. Attached a patch for the same.

Pushed.

--
With Regards,
Amit Kapila.