Re: [GENERAL] Lock ACCESS EXCLUSIVE and Select question !

2011-03-01 Thread Alan Acosta
seems a new and good idea for me, is the first time i heard about SELECT FOR UPDATE. Another question !, can i combine SELECT FOR UPDATE and LOCK command on different tables at the same transaction ? Alan Acosta On Tue, Mar 1, 2011 at 9:33 AM, Andrew Sullivan wrote: > On Tue, Mar 01, 2011

Re: [GENERAL] Lock ACCESS EXCLUSIVE and Select question !

2011-03-01 Thread Alan Acosta
to changes. Meanwhile, i reduce my lock level and even the CPU load is now lower LOL, is fantastic, thanks for your help, clients are now working better and faster than before ^_^, i still have a lot of to read about postgres. Alan Acosta On Mon, Feb 28, 2011 at 8:13 PM, David Johnston wrote: >

Re: [GENERAL] Lock ACCESS EXCLUSIVE and Select question !

2011-02-28 Thread Alan Acosta
need to lock in some way in order to check if seat number X was already sold or is free ! Alan Acosta On Mon, Feb 28, 2011 at 5:21 PM, Andrew Sullivan wrote: > On Mon, Feb 28, 2011 at 05:13:11PM -0500, Alan Acosta wrote: > > I really appreciate your help Andrew, and yep, i already

Re: [GENERAL] Lock ACCESS EXCLUSIVE and Select question !

2011-02-28 Thread Alan Acosta
I really appreciate your help Andrew, and yep, i already starto to feel some pain lol. I suppose is true but is better to ask, SELECT FOR UPDATE is faster than LOCK ? Thanks for the recommendations, i will check them ^_^ Cheers, Alan Acosta On Mon, Feb 28, 2011 at 4:28 PM, Andrew Sullivan

Re: [GENERAL] Lock ACCESS EXCLUSIVE and Select question !

2011-02-28 Thread Alan Acosta
E don't, or i'm reading bad the table ? I need only one process insert or update my tables in my transaction, no matter how many i have. How can i know which mode is better to block in which case ? Cheers, Alan Acosta On Mon, Feb 28, 2011 at 3:44 PM, Andrew Sullivan wrote: > On Mon

Re: [GENERAL] Lock ACCESS EXCLUSIVE and Select question !

2011-02-28 Thread Alan Acosta
cting lock modes*. Meanwhile i understand well which mode to use in which case i reduce my lock level to EXCLUSIVE, which lock against itself but let SELECT to do his job ! Cheers, Alan Acosta On Mon, Feb 28, 2011 at 1:10 PM, Andrew Sullivan wrote: > On Mon, Feb 28, 2011 at 12:43:58PM -0500

[GENERAL] Lock ACCESS EXCLUSIVE and Select question !

2011-02-28 Thread Alan Acosta
ed in an open transaction will be read it by another threads or this new rows are invisible no matter the mode of the transaction. Any help is very welcome ^_^ Cheers, Alan Acosta