pgindent truncates last line of files missing a trailing newline

Edit
ID 6489
Title pgindent truncates last line of files missing a trailing newline
CI (CFBot) Summary
Stats (from CFBot) Patch count: 1, First patch: +13−1, All patches: +13−1
Tags Bugfix
Created 2026-02-16 14:42:07
Last modified 2026-02-16 14:42:08 (3 hours ago)
Latest email 2026-02-16 16:50:34 (1 hour ago)
Status
PG19-Final (2026-03-01 – 2026-03-31): Needs review
Target version
Authors Akshay Joshi (akshay.joshi)
Reviewers Become reviewer
Committer
Links
Emails
[PATCH] pgindent truncates last line of files missing a trailing newline
First at 2026-02-16 14:09:46 by Akshay Joshi <akshay.joshi at enterprisedb.com>
Latest at 2026-02-16 16:50:34 by Tom Lane <tgl at sss.pgh.pa.us>
Latest attachment (0001-Fix-pgindent-truncates-last-line-of-files.patch) at 2026-02-16 14:09:46 from Akshay Joshi <akshay.joshi at enterprisedb.com>
    Attachment (0001-Fix-pgindent-truncates-last-line-of-files.patch) at 2026-02-16 14:09:46 from Akshay Joshi <akshay.joshi at enterprisedb.com> (Patch: Yes)
History
When Who What
2026-02-16 14:42:08 Akshay Joshi (akshay.joshi) Attached mail thread CANxoLDfca8O5SkeDxB_j6SVNXd+pNKaDmVmEW+2yyicdU8fy0w@mail.gmail.com
2026-02-16 14:42:08 Akshay Joshi (akshay.joshi) Created patch record
Edit