Skip to content

v2.3.5

Choose a tag to compare

@gmr gmr released this 27 Nov 03:02
· 2 commits to main since this release
v2.3.5
c565037

Fixed

pgfmt now uses libpgfmt 1.5.4, which fixes these formatting errors:

  • INSERT ... ON CONFLICT (col) WHERE predicate keeps the partial index predicate. It was dropped (#18).
  • A JOIN group in redundant parentheses, FROM ((a JOIN b ON ...) JOIN c ON ...), is formatted. The whole FROM clause was dropped (#19).
  • A subquery in an AND/OR condition after the first, for example AND NOT EXISTS (SELECT ...), lines up under its condition. It was indented too far to the right (#20). The same applies to later JOIN ON and HAVING conditions.
  • An aliased JOIN group, (a JOIN b ON ...) AS j, and JOIN ... USING (cols) AS j keep their alias.
  • A part that continues an E'...' constant on the next line, and a multi-line $$...$$ value, keep their value.
  • A bare carriage return is a newline, so a -- comment that ends at one does not comment out the code after it.
  • A no-break space (U+00A0) in an unquoted identifier is kept.