Francisco Reyes <lists(at)natserv(dot)com> writes:
> Does initdb deletes the old database?
initdb will refuse to overwrite a non-empty directory.
If you have the disk space, I'd recommend renaming the old $PGDATA
directory out of the way, so you'll have it in case something goes
disastrously wrong. Otherwise, remove it.
regards, tom lane