mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-05 04:22:56 +00:00
Previously, 'zenith init' would initialize a PostgreSQL cluster with "initdb -D tmp", creating the temp cluster under current directory. It moves the 'tmp' directory under the correct snapshot directory in the zenith repository after that, but if something goes wrong in initdb, or in the steps that follow, it could leave behind the 'tmp' directory under current dir. Better to create the temporary directory under the repository directory to begin with, as ".zenith/tmp".