Skip to content

Conversation

@djthorpe
Copy link
Member

@djthorpe djthorpe commented Dec 15, 2025

This pull request adds a comprehensive PostgreSQL management layer ("pgmanager") to the codebase. The implementation provides a structured API for managing PostgreSQL database objects including databases, roles, schemas, tablespaces, extensions, settings, replication slots, and query statistics.

Key changes:

  • Adds version package for build-time version information
  • Enhances test infrastructure with pg_stat_statements and logical replication support
  • Implements manager package with methods for CRUD operations on PostgreSQL objects
  • Provides schema types and validation for all supported PostgreSQL entities
  • Includes HTTP client wrapper for remote manager API access
@djthorpe djthorpe self-assigned this Dec 15, 2025
Copilot AI review requested due to automatic review settings December 15, 2025 13:41
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request adds a comprehensive PostgreSQL management layer ("pgmanager") to the codebase. The implementation provides a structured API for managing PostgreSQL database objects including databases, roles, schemas, tablespaces, extensions, settings, replication slots, and query statistics.

Key changes:

  • Adds version package for build-time version information
  • Enhances test infrastructure with pg_stat_statements and logical replication support
  • Implements manager package with methods for CRUD operations on PostgreSQL objects
  • Provides schema types and validation for all supported PostgreSQL entities
  • Includes HTTP client wrapper for remote manager API access

Reviewed changes

Copilot reviewed 96 out of 98 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
pkg/version/version.go Adds build-time version information with Git metadata
pkg/test/postgresql.go Enables pg_stat_statements and logical replication in test containers
pkg/test/opt.go Adds PostgreSQL configuration setting option for containers
pkg/test/main.go Adds ManagerConn helper for integration testing with manager
pkg/manager/schema/*.go Defines schema types, validation, and SQL operations for PostgreSQL objects
pkg/manager/*.go Implements manager methods for database, role, schema, tablespace operations
pkg/manager/httpclient/statement.go HTTP client for statement statistics API

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@djthorpe djthorpe merged commit 39483aa into main Dec 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant