I'm not sure whether that's Lix specific, but when I enter nix-shell, I get quite a long TMPDIR, which results in all postgrest-with-pg-XX scripts failing, because the unix socket path is too long. If TMPDIR was not set, mktemp would fall back to /tmp, so we can just do that in any case, which guarantees a short path in every case.