When I start postgres using postgres -D $PGDATA, it hangs, and I see that postgres and all the other attendant processes are running, but I never get my prompt back.
If I hit ctl/C, postgres ends running.
I can't seem to figure out why.
This is postgres 9.2.
What am I doing wrong?
Thanks, Susan
$ postgres -D $PGDATA &
should start postgres in the background. (the '&' at the end tells it to put the process in the backgroudn)
If you want it running outside your shell, you should use pg_ctl.
$ pg_ctl --help
pg_ctl is a utility to initialize, start, stop, or control a PostgreSQL server.
Чтобы сделать работу с сайтом удобнее, мы используем cookie и аналитический сервис «Яндекс.Метрика». Продолжая пользоваться сайтом, вы соглашаетесь с их использованием.