The latest version of tmp-postgres is 1.34.1.0-1.

tmp-postgres

Version 1.4.0.0 revision 0 uploaded by JonathanFischoff.

Package meta

Synopsis
Start and stop a temporary postgres
Description

tmp-postgres provides functions creating a temporary postgres instance.

By default it will create a temporary directory for the data, a random port for listening and a temporary directory for a UNIX domain socket.

Here is an example using the expection safe with function:

 with $ \db -> bracket (connectPostgreSQL (toConnectionString db)) close $ \conn ->
  execute_ conn "CREATE TABLE foo (id int)"

MacOS and Linux are support. Windows is not.

Requires PostgreSQL 9.3+

WARNING!! Ubuntu's PostgreSQL installation does not put initdb on the PATH. We need to add it manually. The necessary binaries are in the /usr/lib/postgresql/VERSION/bin/ directory, and should be added to the PATH

echo "export PATH=$PATH:/usr/lib/postgresql/VERSION/bin/" >> /home/ubuntu/.bashrc
Author
Jonathan Fischoff
Bug reports
n/a
Category
Web
Copyright
2017-2019 Jonathan Fischoff
Homepage
https://github.com/jfischoff/tmp-postgres#readme
Maintainer
jonathangfischoff@gmail.com
Package URL
n/a
Stability
n/a

Components