Michail Nikolaev <michail(dot)nikolaev(at)gmail(dot)com> writes:
> Still not sure about comment formatting. Have you seen any style guid about
> it except "strict ANSI C comment formatting"? Anyway still need to work on
> comments.
The short answer is "make the new code look like the code around it".
But there is actually documentation on the point:
https://www.postgresql.org/docs/current/static/source-format.html
The rest of that chapter is recommendable reading as well.
regards, tom lane