I have PostgreSQL database. It is used for unit testing.
Do you have any suggestion concerning in-memory database choice? I want that database to be compatible with PostgreSQL.
I'd simply create a database directory (called a cluster in PostgreSQL) in tmpfs (essentially a RAM-disk - /dev/shm
is configured as such in most Linux distributions) and simply run postgres there on non-standard port, for example like this:
initdb -D /dev/shm/pgtest
postmaster -D /dev/shm/pgtest -p 11111