Skip to content

Fix/postgresql pool configuration#377

Merged
Mosas2000 merged 20 commits into
mainfrom
fix/postgresql-pool-configuration
May 12, 2026
Merged

Fix/postgresql pool configuration#377
Mosas2000 merged 20 commits into
mainfrom
fix/postgresql-pool-configuration

Conversation

@Mosas2000

Copy link
Copy Markdown
Owner

Core Implementation:

Added pool configuration constants (max, idle timeout, connection timeout, statement timeout)
Created parsePoolConfig() function to parse environment variables with validation
Updated PostgresEventStore to accept and apply pool configuration
Integrated pool config into the event store factory function
Added validation warning for excessive pool sizes (>100)
Exported constants for testing purposes
Testing: 7. Added comprehensive unit tests for parsePoolConfig() function 8. Added integration tests for pool configuration 9. Added test for validation warning 10. Added test to verify default constants 11. All 101 tests passing

Closes #347

@Mosas2000 Mosas2000 merged commit 572f551 into main May 12, 2026
3 of 8 checks passed
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.

Add PostgreSQL pool sizing and timeout settings to chainhook storage

1 participant