jfischoff / tmp-postgres

Create temporary postgres instances
BSD 3-Clause "New" or "Revised" License
53 stars 18 forks source link

Shorten temporary directory paths #289

Open 9999years opened 2 months ago

9999years commented 2 months ago

Shortens temporary directory paths by ~13 bytes, to prevent errors when constructing Unix-domain socket paths:

LOG:  Unix-domain socket path "/private/tmp/nix-build-aaaaaaa-aaaaaaaaaa-0.1.0.0.drv-0/tmp-postgres-socket-88e650c49cd6880b/.s.PGSQL.63901" is too long (maximum 103 bytes)
WARNING:  could not create Unix-domain socket in directory "/private/tmp/nix-build-aaaaaaa-aaaaaaaaaa-0.1.0.0.drv-0/tmp-postgres-socket-88e650c49cd6880b"
FATAL:  could not create any Unix-domain sockets