ephemeralpg
« Back to VersTracker
Description:
Run tests on an isolated, temporary Postgres database
Type: Formula  |  Latest Version: 3.4@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: postgresql testing development database cli
Install: brew install ephemeralpg
About:
EphemeralPG is a command-line utility that creates a temporary, isolated PostgreSQL database instance for running tests. It handles the lifecycle of the database, including setup and teardown, ensuring a clean state for each test run. This tool eliminates the need for complex test database management and prevents conflicts with existing databases.
Key Features:
  • Automatic setup and teardown of temporary databases
  • Isolated test environments without affecting existing data
  • Simple command-line interface for easy integration
  • No manual database administration required
Use Cases:
  • Running automated test suites against a clean database
  • Developing database-driven applications without polluting the main database
  • CI/CD pipelines for database migration testing
Alternatives:
  • pg_tmp – Similar functionality, but ephemeralpg is often considered simpler and more lightweight
  • Docker PostgreSQL containers – More heavyweight, requires container management, but offers more isolation
License: ISC
Dependencies: libpq
Bottles available for: arm64_tahoe, arm64_sequoia, arm64_sonoma, arm64_ventura, sonoma, ventura, arm64_linux, x86_64_linux
Version History
Detected Version Rev Change Commit
Sep 13, 2025 2:14pm 0 VERSION_BUMP 767a82bc
Sep 13, 2024 2:14am 0 VERSION_BUMP ea52e561