What is Ephemeral PostgreSQL
masterEphemeral PostgreSQL provides a way to run tests on isolated, temporary PostgreSQL databases using the pg_tmp utility.
Key features include:
- Low Footprint: Temporary databases created with
pg_tmphave a limited shared memory footprint. - Automatic Cleanup: Databases are automatically garbage-collected after a specified number of seconds (controlled by the
-woption; default is 60 seconds). - High Performance:
pg_tmpreduces the wait time for a new database to less than one second by initializing a database in the background for subsequent invocations.