/oss · 1 merged

darold/pgFormatter

A tool that neatly formats PostgreSQL queries, from the command line or the web.

the project on GitHub (opens in a new tab)
  1. 3 Dec 2026

    Removing comments no longer deletes text that has --

    What was broken
    With comments turned off, a text value spread over several lines that had -- in it was deleted as if it were a comment, leaving broken SQL.
    What I changed
    Only parts that start with -- are now treated as comments.
    Why it matters
    Formatting keeps the data in queries and the SQL still runs.

    see the code, #441 (opens in a new tab)

← every project