On Fri, Aug 10, 2018 at 01:25:25PM -0400, Bruce Momjian wrote:
> I was going to do:
>
> /* handle "shut down" and "shut down in recovery" (on standbys)
> strncmp(p, "shut down", strlen("shut down"))
>
> but maybe yours is clearer.
Any method is fine for me. I prefer mine as that's somewhat more
consistent with what happens in pg_rewind & co. As that is your code,
feel free of course to use what you think is most suited ;)
--
Michael