"Josef J. Micka" <postgres@xxxxxxxx> writes: > i want to make database in another place and i'm unable to use > initlocation, and i don't know, what i'm doing wrong. > this is what i do, and i think it's correct. > www:/home/db/postgres$ su postgres Try "su - postgres" ... plain su retains root's environment. regards, tom lane