Create new database with random name
allenap opened this issue · comments
It could be an option, or even the default, to create a database with random name (e.g. petname), so that concurrent processes by default do not tread on one another's toes.
$ postgresfixture shell
enough-lamprey# …
$ postgresfixture shell
divine-minnow# …
Some care might be needed to avoid accidental collisions. CREATE DATABASE
will error if one tries to create a database that already exists, so either it will need to recover from that, or need to look before it leaps.