Re: On /*----- comments

2023-07-05 Thread Heikki Linnakangas
On 04/07/2023 21:36, Tom Lane wrote: Heikki Linnakangas writes: Pushed a patch to remove the end-guard from the example in the pgindent README. And fixed the bogus end-guard in walsender.c. I don't see any actual push? Forgot it after all. Pushed now, thanks. -- Heikki Linnakangas Neon (ht

Re: On /*----- comments

2023-07-04 Thread Tom Lane
ent > README. And fixed the bogus end-guard in walsender.c. I don't see any actual push? > I'm not sure there is a universal best length. It depends on the comment > what looks best. The very long ones in particular would not look good on > comments in a deeply indented blo

Re: On /*----- comments

2023-07-04 Thread Heikki Linnakangas
long ones in particular would not look good on comments in a deeply indented block. So I think the status quo is fine. Looking at line 1 comments for fun shows pretty strong consistency: 1611 /*-

Re: On /*----- comments

2023-07-03 Thread Daniel Gustafsson
> On 30 Jun 2023, at 17:22, Tom Lane wrote: > Seems reasonable; the trailing dashes eat a line without adding much. +1 > Should we also provide specific guidance about how many leading dashes > to use for this? I vaguely recall that pgindent might only need one, > but I think using somewhere a

Re: On /*----- comments

2023-06-30 Thread Tom Lane
Heikki Linnakangas writes: > Except for the translator comments, I think those others forgot about > the end-guards by accident. But they look just as nice to me. It's > probably not worth the code churn to remove them from existing comments, > but how about we stop requiring them in new code,

On /*----- comments

2023-06-30 Thread Heikki Linnakangas
I spotted this comment in walsender.c: /*--- * When reading from a historic timeline, and there is a timeline switch * [.. long comment omitted ...] * portion of the old segment is copied to the new file. --- */ Note the bogus dashes at the