Re: asynchronous psql command options?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: asynchronous psql command options?
Дата
Msg-id 26342.1042743413@sss.pgh.pa.us
обсуждение исходный текст
Ответ на asynchronous psql command options?  (Christopher Smith <christopherl_smith@yahoo.com>)
Ответы Re: asynchronous psql command options?  (Christopher Smith <christopherl_smith@yahoo.com>)
Re: asynchronous psql command options?  (Christopher Smith <christopherl_smith@yahoo.com>)
Список pgsql-admin
Christopher Smith <christopherl_smith@yahoo.com> writes:
> i used psql via ssh on dial-up and closed the ssh client. I logged in
> again and it showed that the postmater process was still running.. I
> thought that the index building process would continue 'til
> completion.

> however, this morning no indexes were built.  Is it possible to send
> commands via psql asynchronous.  Does anyone know why the index
> building process stopped?

It worked for me in a quick test here: issue CREATE INDEX command,
"kill -9" the psql client from another window, wait for indexing to
finish.

I wonder whether you had started a transaction block, viz
    begin;
    create index ...;
    <<kill client>>
Without a commit to match the begin, the index would be discarded.

Another likely prospect is that the CREATE INDEX command actually failed
(ran out of disk space, for example).  Did you look in the postmaster
log to see if any error message was recorded?

            regards, tom lane

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

Предыдущее
От: "Bjoern Metzdorf"
Дата:
Сообщение: Re: asynchronous psql command options?
Следующее
От: "King_Henree@yahoo.com"
Дата:
Сообщение: Determining DML is used most???