> On 04 Mar 2016, at 19:12, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>
> itparanoia@gmail.com writes:
>> Running [9.5] initdb without datadir parameter initializes in 9.4/data
>
> There is no built-in default in initdb for what to use for the datadir
> location. The only way it would accept the command as written is if
> you have an environment setting for PGDATA ... so presumably, the
> problem is you've set PGDATA incorrectly.
>
> regards, tom lane
You are right.
Sorry for the noise.