Re: asynchronous psql command options?

From: Christopher Smith <christopherl_smith(at)yahoo(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: asynchronous psql command options?
Date: 2003-01-16 19:46:13
Message-ID: 20030116194613.89076.qmail@web14108.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin


disk space ran out. Is it possible to predict the filename to be used for indexes and hence create a link to another open disk.
I think that the filename used are oids?
please advise
Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:Christopher Smith 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 ...;
<>
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

---------------------------------
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2003-01-16 21:19:38 Re: asynchronous psql command options?
Previous Message Christopher Smith 2003-01-16 19:23:25 Re: asynchronous psql command options?