initdb execution

From: Azimuddin Mohammed <azimeiu(at)gmail(dot)com>
To: pgsql-admin(at)postgresql(dot)org, pgsql-admin(at)lists(dot)postgresql(dot)org, pgsql-general(at)postgresql(dot)org
Subject: initdb execution
Date: 2018-02-09 17:36:44
Message-ID: CAKUuFd5cu+0n6MQy2pgJw66awY3r4=NUP4tjiTBURWDQaP5DdQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general

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

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Francisco Olarte 2018-02-09 17:50:46 Re: initdb execution
Previous Message bricklen 2018-02-08 22:29:52 Re: Hot Standby vs slony

Browse pgsql-general by date

  From Date Subject
Next Message Francisco Olarte 2018-02-09 17:43:30 Re: Odd behavior with 'currval'
Previous Message Francisco Olarte 2018-02-09 17:36:40 Re: Odd behavior with 'currval'