Skip to content

style: pgindent open_pg_tde_tdemap.c (TDEMapEntryV4/Type)#18

Merged
jdatcmd merged 3 commits into
mainfrom
fix/pgindent-tdemap
Jul 16, 2026
Merged

style: pgindent open_pg_tde_tdemap.c (TDEMapEntryV4/Type)#18
jdatcmd merged 3 commits into
mainfrom
fix/pgindent-tdemap

Conversation

@jdatcmd

@jdatcmd jdatcmd commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Fixes the repo-wide pgindent CI check ("Check"), which is currently red on main.

The migration-reader code added with the key-map base_iv work (#15) left four lines that pgindent rewrites once TDEMapEntryV4 and TDEMapEntryType are recognized as types (they are, in the CI's generated typedefs):

  • }<tabs>TDEMapEntryType; -> } TDEMapEntryType;
  • }<tabs>TDEMapEntryV4; -> } TDEMapEntryV4;
  • TDEMapEntryV4 * entry -> TDEMapEntryV4 *entry (two call sites)

open_pg_tde_tdemap.c is the only file the pgindent check flags. Whitespace only, no behavior change.

🤖 Generated with Claude Code

ChronicallyJD and others added 3 commits July 15, 2026 17:20
The migration-reader code added with the key-map base_iv work left four
lines that pgindent rewrites once TDEMapEntryV4 and TDEMapEntryType are
recognized as types: the typedef-struct closing braces and the
`TDEMapEntryV4 *entry` parameter form. This is the only file the pgindent
CI check flags. Whitespace only, no behavior change.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The pgindent check regenerates typedefs.list with find_typedef, whose
output depends on the debug info of the build it scans. It does not
reliably emit this project's local typedefs (for example TDEMapEntryType
and TDEMapEntryV4), so the pgindent check flapped: the same lines were
wanted in "type" form on one run and "non-type" form on the next.

Commit the project's typedefs and have dump-typedefs.sh always merge them
into the generated list, so recognition no longer depends on find_typedef.
Only the previously-missed local typedefs change anything, and only in
open_pg_tde_tdemap.c, which the previous commit already formats for the
recognized state.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
fetools/ holds copies of upstream PostgreSQL frontend code (pg_basebackup
and friends) with small open_pg_tde modifications. Like src/libkmip, which
is already excluded, keeping these close to their upstream source matters
more than pgindent conformance, and a local comment in the copies is not
pgindent-wrapped. Exclude fetools/ so the pgindent check reflects the code
this project actually owns.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@jdatcmd jdatcmd merged commit a898169 into main Jul 16, 2026
25 of 37 checks passed
@jdatcmd jdatcmd deleted the fix/pgindent-tdemap branch July 16, 2026 02:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants