Re: [GENERAL] no-arg cluster and locks ...

2008-02-24 Thread Adam Rich
> Can you provide more details? pg_locks, pg_stat_activity, the deadlock > message? > > (Hmm, it would be helpful if the deadlock checker were to save the > pg_locks contents and perhaps pg_stat_activity in a file, whenever a > deadlock is detected.) Great idea! As somebody who's spent hours tr

Re: [GENERAL] no-arg cluster and locks ...

2008-02-24 Thread Alvaro Herrera
James Robinson wrote: > How does 8.2 [ or 8.3 ] deal with table locking in the face of no- > argument 'cluster' command? Does it lock all tables it is going to visit > 'up front', or does it collect locks slowly as it visits tables? If it > only locks a new table before it visits it, does it unl

[GENERAL] no-arg cluster and locks ...

2008-02-24 Thread James Robinson
How does 8.2 [ or 8.3 ] deal with table locking in the face of no- argument 'cluster' command? Does it lock all tables it is going to visit 'up front', or does it collect locks slowly as it visits tables? If it only locks a new table before it visits it, does it unlock it once it is done?