postgresql installation
postgresql installation
От:
"Netra systems" <julien@netra-systems.com>
Дата:
hello, i have pb with the postgre sql installation : i compile all .. ok but when i want to run postmaster or anything else it say : no db dir : data/../template1 ... i have no data dir in my postgre dinstalled dir .... how can i have this dir with all into ?
Re: postgresql installation
От:
Cory Kempf <ckempf@enigami.com>
Дата:
"Netra systems" writes: > hello, > i have pb with the postgre sql installation : > i compile all .. ok > but when i want to run postmaster or anything else it say : no db dir : > data/../template1 ... > i have no data dir in my postgre dinstalled dir .... > how can i have this dir with all into ? Have you run initdb? My guess is no. Also, when you run initdb, the data directory it uses (I use /var/lib/pgsql, which I set up by having my .zshrc file export PGDATA=/var/lib/pgsql for my postgres account) needs to be the same as that passed to postmaster via the -D option. Oh, initdb really should be run as the postgres user. Definately not as root! Make sure your permissions are set up ahead of time! +C -- Have you signed up to be a bone marrow doner? All it takes is a simple blood test, and it can save a life. Cory Kempf Macintosh / Unix Consulting & Software Development ckempf@enigami.com