problems about updating a table and cluster this table at the same time

From: jing han <jing_han_66(at)yahoo(dot)com>
To: postgres interface <pgsql-interfaces(at)postgresql(dot)org>
Subject: problems about updating a table and cluster this table at the same time
Date: 2005-08-15 17:03:54
Message-ID: 20050815170354.49947.qmail@web53509.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

Hello,

I work on a large database. I make use of cron job to
cluster certain database table periodically.

I found when updating a table and clusterdb cron job
happens to run at exactly the same time clustering
that table, then both updating and clustering stuck.
Database server hault. This cause my system hault.

I tried to lock that table using 'lock tableName'
command before updating that table, I run 'clusterdb
-t tableName dbName', I found clusterdb ignore the
fact that the table is locked and go ahead finishing
cluster job.

So how can I protect the table when I update it to
avoid cluster cron job interrupt the update?

Any suggestion will be greatly appreciated!

jing


____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Munteanu Gabriel 2005-08-15 17:51:27 unsubscribe
Previous Message Michael Fuhr 2005-08-13 15:01:45 Re: [HACKERS] ECPG ignores SAVEPOINT if first statement of a transaction