Re: [GENERAL] shared Locks

2005-09-20 Thread Daniel Schuchardt
Martijn van Oosterhout schrieb: Yes you'r right here. Because we use Cursor Fetch, every statement starts a transaction. So your right I tested it and this forces a table lock. Hm... i will look how to do this in another way. Just COMMIT when you're done. This does kill the cursor thou

Re: [GENERAL] shared Locks

2005-09-20 Thread Martijn van Oosterhout
On Tue, Sep 20, 2005 at 12:01:46PM +0200, Daniel Schuchardt wrote: > Martijn van Oosterhout schrieb: > >I think you'll find that locks are held to the end of the transaction. > >You're not holding a transaction open but not doing anything, are you? > > > > > Yes you'r right here. Because we use Cu

Re: [GENERAL] shared Locks

2005-09-20 Thread Daniel Schuchardt
Martijn van Oosterhout schrieb: On Tue, Sep 20, 2005 at 11:18:48AM +0200, Daniel Schuchardt wrote: So if we want to change a table structure (add a field or sth like this) many clients own AccessShareLock's because it seams that a simple SELECT * FROM table will grant a AccessShareLock and

Re: [GENERAL] shared Locks

2005-09-20 Thread Martijn van Oosterhout
On Tue, Sep 20, 2005 at 11:18:48AM +0200, Daniel Schuchardt wrote: > So if we want to change a table structure (add a field or sth like this) > many clients own AccessShareLock's because it seams that a simple SELECT > * FROM table will grant a AccessShareLock and don't release it unitl the > co