Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id DA3C1476892 for ; Thu, 16 Jan 2003 14:56:40 -0500 (EST) Received: from web14108.mail.yahoo.com (web14108.mail.yahoo.com [216.136.172.138]) by postgresql.org (Postfix) with SMTP id D440047626E for ; Thu, 16 Jan 2003 14:46:22 -0500 (EST) Message-ID: <20030116194613.89076.qmail@web14108.mail.yahoo.com> Received: from [172.142.29.207] by web14108.mail.yahoo.com via HTTP; Thu, 16 Jan 2003 11:46:13 PST Date: Thu, 16 Jan 2003 11:46:13 -0800 (PST) From: Christopher Smith Subject: Re: asynchronous psql command options? To: Tom Lane Cc: pgsql-admin@postgresql.org In-Reply-To: <26342.1042743413@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-994783919-1042746373=:87906" X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200301/177 X-Sequence-Number: 7019 --0-994783919-1042746373=:87906 Content-Type: text/plain; charset=us-ascii 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 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 --0-994783919-1042746373=:87906 Content-Type: text/html; charset=us-ascii

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@sss.pgh.pa.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 actuall y 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 --0-994783919-1042746373=:87906--