Re: starting postgresql for first time

Поиск
Список
Период
Сортировка
От Avi Schwartz
Тема Re: starting postgresql for first time
Дата
Msg-id F1F846B3-9995-11D8-9B49-000393AE5044@CFFtechnologies.com
обсуждение исходный текст
Ответ на starting postgresql for first time  (Robert Morgan <robert_@ihug.co.nz>)
Список pgsql-novice
On Apr 28, 2004, at 18:30, Robert Morgan wrote:

> INITIALISATION IS SUCCESSFUL
>
> bash-2.05b$ /usr/local/pgsql/bin/postmaster -D /usr/local/pgsql/data
> LOG: could not create IPv6 socket: Address family not supported by
> protocol
> LOG: database system was shut down at 2004-04-29 10:51:19 NZST
> LOG: checkpoint record is at 0/9B1058
> LOG: redo record is at 0/9B1058; undo record is at 0/0; shutdown TRUE
> LOG: next transaction ID: 536; next OID: 17142
> LOG: database system is ready
>
> AT THIS POINT I DID CTRL+Z AS NOTHING ELSE HAPPENED
>
> [1]+ Stopped /usr/local/pgsql/bin/postmaster -D /usr/local/pgsql/data
>
> POSMASTER HAS STOPPED
>
> bash-2.05b$ /usr/local/pgsql/bin/postmaster -D /usr/local/pgsql/data
> FATAL: lock file "/usr/local/pgsql/data/postmaster.pid" already exists
> HINT: Is another postmaster (PID 19495) running in data directory
> "/usr/local/pgsql/data"?
> bash-2.05b$
>
> UNABLE TO RESTART? ANOTHER INSTANCE OF POSTMASTER RUNNING? NO!!
>
> If someone could explain to me what is going on I would appreciate it.
>
> Without a doubt one of the more user unfriendly programmes I have come
> across!

You may look first for a book explaining basic Linux and bash concepts.

 From the bash man page:

"Typing the ****suspend**** character (typically ^Z, Control-Z) while a
process is running causes that process to
be stopped and returns control to bash."

This does not kill the process.  The process is still alive but
suspended and can be restarted either by the 'bg' or 'fg' job control
commands.  This means that the lock files are still there and Postgres
is right,  there is another postmaster instance running.

Avi


В списке pgsql-novice по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: starting postgresql for first time
Следующее
От: joseph speigle
Дата:
Сообщение: Re: starting postgresql for first time