initdb execution - Mailing list pgsql-admin

From Azimuddin Mohammed
Subject initdb execution
Date
Msg-id CAKUuFd5cu+0n6MQy2pgJw66awY3r4=NUP4tjiTBURWDQaP5DdQ@mail.gmail.com
Whole thread Raw
Responses Re: initdb execution  (Francisco Olarte <folarte@peoplecall.com>)
Re: initdb execution  (Francisco Olarte <folarte@peoplecall.com>)
List pgsql-admin
Hello I have a question regrading initdb,
My understanding of initdb is when we execute it it will create the directory structure in /data.
My question is when we run initdb when we already have a database running and for some reason I run this command what happens to my existing actual data does it get flushed out ? In that case what is the best practice here?

--

Regards,
Azim

pgsql-admin by date:

Previous
From: bricklen
Date:
Subject: Re: Hot Standby vs slony
Next
From: Francisco Olarte
Date:
Subject: Re: initdb execution