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
I would recommend using HSQL with a spring combination. I was brought on to my current occupation to do this exact thing, and even though it is a headache, it can be done. And based on quick research, it appears hsql is compatible with PostgreSQL. Let me know if you have any other questions.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With