Skip to content

docs: what the guides said that the code no longer does - #62

Merged
AlexeyShalaev merged 1 commit into
masterfrom
docs/stale-statements
Sep 6, 2026
Merged

docs: what the guides said that the code no longer does#62
AlexeyShalaev merged 1 commit into
masterfrom
docs/stale-statements

Conversation

@AlexeyShalaev

Copy link
Copy Markdown
Member

Summary

Reading the docs against the code for a blog post turned up statements that stopped being true, most of them between 1.2.0 and 1.5.0. Prose only; no behaviour changes.

  • guide/container.md: the grant comment said USAGE, CREATE on the schema is enough to create and attach partitions. It is not: PostgreSQL lets only the parent's owner run CREATE TABLE … PARTITION OF, ATTACH and DETACH (checked on 17: must be owner of table events). The comment now says the schema grant is needed and not sufficient.
  • agents.md, getting-started/installation.md: tested on 15 through 18, as CI runs, not "15, 16 and 17".
  • README.md: backfill in the command list; the tree is read by a recursive walk over pg_inherits, not pg_partition_tree; PlanStaleError stops the run unless continue_on_error; three behavioural differences between the mirrors since 1.3.0; after_* hook exceptions are re-raised, not only logged.
  • guide/cli.md: a Python block hook no longer holds the stop (1.3.0); the "no --sql" paragraph no longer names the DEFAULT-sibling fallback, which 1.5.0 plans.
  • guide/archiving.md: eight moments, not six.
  • guide/running.md, pg_partsmith/cli/__init__.py: five commands, backfill in the table.
  • CONTRIBUTING.md: the hand-maintained mirror files as scripts/sync_mirror.py lists them.
  • SECURITY.md: 1.5.x is the current release.

Type of change

  • Documentation update

Checklist

  • Tests added or updated — prose only; tests/unit/test_guides.py and tests/unit/test_examples.py pass
  • make check passes locally (ruff + mypy)
  • CHANGELOG.md updated under [Unreleased] — docs commits stay out of the changelog since ci: keep docs commits out of releases #61
  • Documentation updated (if the public API changed)

Related issues

None.

The grant comment in the container guide claimed USAGE and CREATE on the
schema are enough to create and attach partitions; PostgreSQL lets only the
parent's owner do either, so the comment now says the grant is needed and
not sufficient. The rest is drift since 1.2.0 through 1.5.0: PostgreSQL 15
through 18 under test, backfill among the commands, the tree read over
pg_inherits, three differences between the mirrors, after_* hook exceptions
re-raised, a Python block hook no longer holding a stop, eight hook moments,
the hand-maintained mirror files as the script lists them, and 1.5.x as the
release the security policy supports.
@codecov

codecov Bot commented Sep 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@AlexeyShalaev
AlexeyShalaev merged commit f849a6f into master Sep 6, 2026
32 checks passed
@AlexeyShalaev
AlexeyShalaev deleted the docs/stale-statements branch September 6, 2026 15:57
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.

1 participant