Re: Data type correction in pgstat_report_replslot function parameters
vignesh C <vignesh21@gmail.com>
From: vignesh C <vignesh21@gmail.com>
To: Fujii Masao <masao.fujii@oss.nttdata.com>
Cc: Jeevan Ladhe <jeevan.ladhe@enterprisedb.com>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2021-04-03T01:38:57Z
Lists: pgsql-hackers
On Fri, Apr 2, 2021 at 1:59 PM Fujii Masao <masao.fujii@oss.nttdata.com> wrote: > > > > On 2021/04/02 11:20, vignesh C wrote: > > On Thu, Apr 1, 2021 at 11:18 PM Fujii Masao <masao.fujii@oss.nttdata.com> wrote: > >> > >> > >> > >> On 2021/04/02 2:18, Jeevan Ladhe wrote: > >>> > >>> > >>> On Thu, Apr 1, 2021 at 10:20 PM vignesh C <vignesh21@gmail.com <mailto:vignesh21@gmail.com>> wrote: > >>> > >>> Hi, > >>> > >>> While I was reviewing replication slot statistics code, I found one > >>> issue in the data type used for pgstat_report_replslot function > >>> parameters. We pass int64 variables to the function but the function > >>> prototype uses int type. I I felt the function parameters should be > >>> int64. Attached patch fixes the same. > >> > >> Isn't it better to use PgStat_Counter instead of int64? > >> > > > > Thanks for your comment, the updated patch contains the changes for it. > > Thanks for updating the patch! Pushed. Thanks for pushing. Regards, Vignesh
Commits
-
Fix pgstat_report_replslot() to use proper data types for its arguments.
- 96bdb7e19de8 14.0 landed