Skip to content

Rename internal-only variables to the _PGXNTOOL_ shape - #93

Draft
jnasbyupgrade wants to merge 1 commit into
Postgres-Extensions:masterfrom
jnasbyupgrade:issue-87-internal-var-naming
Draft

Rename internal-only variables to the _PGXNTOOL_ shape#93
jnasbyupgrade wants to merge 1 commit into
Postgres-Extensions:masterfrom
jnasbyupgrade:issue-87-internal-var-naming

Conversation

@jnasbyupgrade

@jnasbyupgrade jnasbyupgrade commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Renamed 5 pure-internal-plumbing Make variables from a bare PGXNTOOL_ prefix (which reads like a supported override point) to _PGXNTOOL_...: PGXNTOOL_BASE_MK_INCLUDED, PGXNTOOL_CONTROL_FILES, PGXNTOOL_EXTENSIONS, PGXNTOOL_INSTALL_SCHEDULE, and _CHECK_STALE_EXPECTED_SCRIPT (renamed too, for _PGXNTOOL_ consistency).
  • PGXNTOOL_DIR deliberately left as-is: present since Release 0.1 (2016), referenced across base.mk plus 4 shell scripts — highest-risk name in the framework to touch, out of scope here.
  • HISTORY.asc updated (new STABLE section, Issues fixed in this release: #87).

Fixes #87.

Paired with Postgres-Extensions/pgxntool-test#72 for the corresponding test/doc updates.

Test plan

  • Full pgxntool-test suite passes against this branch (248/248, 0 skips, 0 failures)

Several Make variables that are pure internal plumbing -- never designed
as user override points -- were named with a bare `PGXNTOOL_` prefix,
which reads like a supported override point by name alone (this is what
issue Postgres-Extensions#87 flagged for `PGXNTOOL_INSTALL_SCHEDULE` specifically). Renamed
all five to the `_PGXNTOOL_` shape (leading underscore, still namespaced),
matching the existing `_CHECK_STALE_EXPECTED_SCRIPT` precedent:

- `PGXNTOOL_BASE_MK_INCLUDED` -> `_PGXNTOOL_BASE_MK_INCLUDED` (include guard)
- `PGXNTOOL_CONTROL_FILES` -> `_PGXNTOOL_CONTROL_FILES`
- `PGXNTOOL_EXTENSIONS` -> `_PGXNTOOL_EXTENSIONS`
- `PGXNTOOL_INSTALL_SCHEDULE` -> `_PGXNTOOL_INSTALL_SCHEDULE`
- `_CHECK_STALE_EXPECTED_SCRIPT` -> `_PGXNTOOL_CHECK_STALE_EXPECTED_SCRIPT`
  (renamed too, for consistency with the new shape)

`PGXNTOOL_DIR` is deliberately excluded: present since pgxntool's very
first release and referenced across `base.mk` plus four separate shell
scripts, making it the highest-risk name in the framework to touch. None
of the five renamed variables are documented anywhere as override points,
but if a project happened to reference one directly (unsupported, but
possible), it will need updating.

Fixes Postgres-Extensions#87.

Related changes in pgxntool-test:
- `test/standard/make-test.bats` and `test/lib/helpers.bash`: updated
  `_CHECK_STALE_EXPECTED_SCRIPT` references to the new name
- `test/sequential/04-pgtle.bats`: updated `make print-PGXNTOOL_CONTROL_FILES`
  to the new name
- `CLAUDE.md`: updated the internal-variable-naming-convention section

Co-Authored-By: Claude <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Aug 1, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 1bbcb00c-5e9e-4e8b-95d1-a8a7a34121ca

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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.

PGXNTOOL_INSTALL_SCHEDULE naming doesn't follow the internal-var underscore convention

1 participant