[PATCH] remove incorrect comment in pg_resetwal.c - Mailing list pgsql-hackers

From Gavin LYU
Subject [PATCH] remove incorrect comment in pg_resetwal.c
Date
Msg-id CANGnNoXevdxt8yL9s0-1SzUXAd-OiaEQbCeUp8aNhrKbCYeGgA@mail.gmail.com
Whole thread Raw
Responses Re: [PATCH] remove incorrect comment in pg_resetwal.c
List pgsql-hackers
Hi Hackers,


While reading the code, I noticed an incorrect comment in the main() function of src/bin/pg_resetwal/pg_resetwal.c.

In the block handling the -e option, theres a comment that appears to be a copy-paste error (line 190 and 191). It references a second %s, but none exists in that format string. Moreover, similar argument-handling code for other options doesnt include such a comment.

I believe it should be removed.
Attached is a patch that fixes this issue.


Best regards,
--
Gavin LYU
Attachment

pgsql-hackers by date:

Previous
From: Soumya S Murali
Date:
Subject: Re: 001_password.pl fails with --without-readline
Next
From: Laurenz Albe
Date:
Subject: Re: Can we change pg_rewind used without wal_log_hints and data_checksums