Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 908C7476299 for ; Thu, 16 Jan 2003 14:51:26 -0500 (EST) Received: from web14106.mail.yahoo.com (web14106.mail.yahoo.com [216.136.172.136]) by postgresql.org (Postfix) with SMTP id 291264771CA for ; Thu, 16 Jan 2003 14:23:35 -0500 (EST) Message-ID: <20030116192325.53682.qmail@web14106.mail.yahoo.com> Received: from [172.138.27.72] by web14106.mail.yahoo.com via HTTP; Thu, 16 Jan 2003 11:23:25 PST Date: Thu, 16 Jan 2003 11:23:25 -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-1321634587-1042745005=:51992" X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200301/176 X-Sequence-Number: 7018 --0-1321634587-1042745005=:51992 Content-Type: text/plain; charset=us-ascii Filesystem Size Used Avail Use% Mounted on /dev/sdb1 17G 2.0G 13G 13% /var/lib/pgsql/data /dev/sdd1 17G 11G 5.2G 68% /datadir correct disk space ran out. However, just one more question... on my test server the indexes are ~8G. I moved the data to be indexed (sym linkd ) to the datadir (as shown above). I thought that the indexes would be in my /var/lib/pgsql/data directory. How can I get the indexes on a disk with necessary space. Please help! 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-1321634587-1042745005=:51992 Content-Type: text/html; charset=us-ascii

Filesystem            Size  Used Avail Use% Mounted on
/dev/sdb1              17G  2.0G   13G  13% /var/lib/pgsql/data
/dev/sdd1              17G   11G  5.2G  68% /datadir

correct disk space ran out.  However, just one more question... on my test server the indexes are ~8G.   I moved the data to be indexed (sym linkd ) to the datadir (as shown above). I thought that the indexes would be in my /var/lib/pgsql/data directory.

How can I get the indexes on a disk with necessary space. Please help!

 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-1321634587-1042745005=:51992--