On Thu, Aug 12, 2021 at 1:13 PM Masahiko Sawada <sawada.m...@gmail.com> wrote: > > On Thu, Aug 12, 2021 at 3:16 PM Amit Kapila <amit.kapil...@gmail.com> wrote: > > > > > > I have also tested and fix works for me. The fix works because > > pgstat_initialize() is called before we register clean up in > > SharedFileSetInit(). I am not sure if we need an Assert to ensure that > > and if so how we can do that? Any suggestions? > > I think that the assertion added by ee3f8d3d3ae ensures that > pgstat_initialize() is callbed before the callback for fileset cleanup > is registered, no? >
I think I am missing something here, can you please explain? -- With Regards, Amit Kapila.