Skip to content

Add PostgreSQL module with feature-based architecture (v2.2.8)#44

Merged
AntonioCS merged 1 commit intomainfrom
feature/postgresql-module-improvements
Jan 4, 2026
Merged

Add PostgreSQL module with feature-based architecture (v2.2.8)#44
AntonioCS merged 1 commit intomainfrom
feature/postgresql-module-improvements

Conversation

@AntonioCS
Copy link
Owner

Summary

  • Complete rewrite of PostgreSQL module with feature-based architecture
  • Enable only needed features via pg_features variable (11 available features)
  • pg_invoke wrapper with auto binary extraction for mb_exec_with_mode
  • Added <prefix>_env support to all mode handlers for environment variables
  • Improved mb_exec_with_mode documentation explaining extensibility

New PostgreSQL targets

  • Connection monitoring: pg/conn/list, pg/conn/count, pg/conn/long-running
  • Session management: pg/session/kill/%, pg/session/kill-idle, pg/session/cancel/%
  • Extension management: pg/extension/list, pg/extension/available, pg/extension/create/%, pg/extension/drop/%
  • Index management: pg/index/list, pg/index/unused, pg/index/reindex, pg/index/reindex/%

Test plan

  • PostgreSQL module tests pass (10 tests, 44 assertions)
  • Docker module tests pass (16 tests, 48 assertions)

PostgreSQL module:
- Feature system: enable only needed features via pg_features variable
- Available: core, sql, db, role, conn, session, dump, extension, table, index, maintenance
- pg_invoke wrapper with auto binary extraction for mb_exec_with_mode
- New targets: connection monitoring, session management, extensions, indexes
- Configuration via mod_config.mk with sensible defaults

mb_exec_with_mode enhancements:
- Added <prefix>_env support to all mode handlers for environment variables
- Improved documentation explaining extensibility and custom mode creation
- Renamed $0_cmd to $0_dc_cmd in docker-compose handler for clarity
@AntonioCS AntonioCS merged commit ee850ca into main Jan 4, 2026
1 check passed
@AntonioCS AntonioCS deleted the feature/postgresql-module-improvements branch January 4, 2026 17:29
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