### Install Ephemeral PostgreSQL Source: https://github.com/eradman/ephemeralpg/blob/master/README.md Installs the Ephemeral PostgreSQL utility. Supports default installation or specifying a custom location using the PREFIX environment variable. ```make make install ``` ```make PREFIX=$HOME/local make install ``` -------------------------------- ### Start Temporary Server with Custom Extension Source: https://github.com/eradman/ephemeralpg/blob/master/README.md Shows how to start a temporary PostgreSQL server with a custom shared preload library, specified via the `-o` option, and then connect to it. ```shell uri=$(pg_tmp -o "-c shared_preload_libraries=$PWD/auth_hook") psql $uri -c "SELECT 1" ``` -------------------------------- ### Create and Query Temporary Database Source: https://github.com/eradman/ephemeralpg/blob/master/README.md Demonstrates creating a temporary PostgreSQL database using `pg_tmp` and executing a SQL script against it using `psql`. ```shell uri=$(pg_tmp) psql $uri -f my.sql ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.