Skip to content

Conversation

@AntTheLimey
Copy link
Member

Summary

This PR fixes 10 documentation inaccuracies identified by comparing the docs against the Spock source code.

High Severity Fixes

  • TRUNCATE RESTART IDENTITY: Docs said "not supported" but source code (spock_apply.c:1610-1709) shows it IS replicated
  • Deferrable constraints: Added warning that they are silently skipped for conflict detection (not just error on apply)
  • Delta-Apply NOT NULL: Added missing documentation for the NOT NULL requirement (spock_apply_heap.c:613-627)
  • two_node_cluster.md: Fixed wrong parameter name subscriber_dsnprovider_dsn

Medium Severity Fixes

  • Encoding requirement: Clarified that matching encoding is required, not specifically UTF-8 (spock_apply.c:1858-1868)
  • REPLICA IDENTITY FULL: Clarified it works with Delta-Apply columns on tables with PKs
  • sub_mgmt.md: Fixed copy-paste error in sub_enable description ("stop" → "start")
  • node_mgmt.md: Fixed copy-paste error in node_drop example description

Low Severity Fixes

  • README.md, index.md: Added PostgreSQL 18 to supported versions list (per release notes for 5.0.3)

Files Changed

  • docs/limitations.md - 5 fixes
  • docs/two_node_cluster.md - parameter name fix
  • docs/index.md - PG 18
  • docs/spock_functions/sub_mgmt.md - sub_enable description
  • docs/spock_functions/node_mgmt.md - node_drop description
  • README.md - PG version list

Verification

All changes were verified against Spock source code with specific file:line references documented in the commit.

🤖 Generated with Claude Code

This commit addresses 10 documentation issues identified by comparing
docs against the Spock source code:

1. limitations.md: Clarify encoding requirement (matching, not UTF-8 specific)
2. limitations.md: TRUNCATE RESTART IDENTITY is actually replicated
3. limitations.md: REPLICA IDENTITY FULL works with Delta-Apply + PK
4. limitations.md: Deferrable constraints are silently skipped in conflict detection
5. limitations.md: Add Delta-Apply NOT NULL requirement section
6. README.md: Explicitly list supported PG versions (15, 16, 17, 18)
7. two_node_cluster.md: Fix subscriber_dsn -> provider_dsn parameter
8. index.md: Add PostgreSQL 18 to supported versions
9. sub_mgmt.md: Fix sub_enable description (start, not stop)
10. node_mgmt.md: Fix node_drop example description

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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