Repository navigation
v2.3.5
Fixed
pgfmt now uses libpgfmt 1.5.4, which fixes these formatting errors:
INSERT ... ON CONFLICT (col) WHERE predicatekeeps 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, andJOIN ... USING (cols) AS jkeep 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.