Re: CheckMyDatabase some error messages in two lines.

2024-06-10 Thread Michael Paquier
On Sun, Jun 09, 2024 at 10:12:53PM -0400, Tom Lane wrote: > No doubt. People have done it both ways in the past, but I think > currently there's a weak consensus in favor of using one line for > such messages even when it runs past 80 columns, mainly because > that makes it easier to grep the sour

Re: CheckMyDatabase some error messages in two lines.

2024-06-09 Thread Tom Lane
Nathan Bossart writes: > On Mon, Jun 10, 2024 at 08:00:00AM +0800, jian he wrote: >> - errdetail("The database was initialized with >> LC_COLLATE \"%s\", " >> - " which is not recognized by >> setlocale().", collate), >> +

Re: CheckMyDatabase some error messages in two lines.

2024-06-09 Thread Nathan Bossart
On Mon, Jun 10, 2024 at 08:00:00AM +0800, jian he wrote: > https://www.postgresql.org/docs/devel/error-style-guide.html#ERROR-STYLE-GUIDE-FORMATTING > "Don't end a message with a newline." > > > accidentally, I found some error messages in the function > CheckMyDatabase spread into two lines. > s