From: | Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl> |
---|---|
To: | adnandursun(at)asrinbilisim(dot)com(dot)tr |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Feature freeze date for 8.1 |
Date: | 2005-05-01 14:25:54 |
Message-ID: | 20050501142554.GB1570@dcc.uchile.cl |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
On Sun, May 01, 2005 at 03:09:37PM +0300, adnandursun(at)asrinbilisim(dot)com(dot)tr wrote:
> Process A start to update / insert some rows in a table
> and then the connection of process A is lost to PostgreSQL
> before it sends commit or rollback. Other processes want to
> update the same rows or SELECT
..FOR UPDATE for the same
> rows.Now these processes are providing SELECT WAITING
or
> CANCEL QUERY if statement_timeout was set. Imagine these
> processes is getting grower. What will we do now ?
> Restarting backend or finding process A and kill it ?
Well, if process A loses the connection to the client, then the
transaction will be rolled back and other processes will be able to
continue.
Another thing to keep in mind is that if process A is inserting a tuple,
other processes will not see it because it isn't committed. So MVCC
rules protect them from blocking. (Unless there is a unique restriction
and some other process wants to insert the same value to it.)
Now, we do have an "availability" problem in 8.0 and earlier, which is
that you could block trying to check a foreign key that other process is
also checking. I am happy to say that it doesn't happen anymore so
that's one less barrier.
--
Alvaro Herrera (<alvherre[(at)]dcc(dot)uchile(dot)cl>)
"In fact, the basic problem with Perl 5's subroutines is that they're not
crufty enough, so the cruft leaks out into user-defined code instead, by
the Conservation of Cruft Principle." (Larry Wall, Apocalypse 6)
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2005-05-01 14:44:32 | Re: Feature freeze date for 8.1 |
Previous Message | Neil Conway | 2005-05-01 14:02:25 | Re: SPI bug. |
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2005-05-01 14:44:32 | Re: Feature freeze date for 8.1 |
Previous Message | adnandursun | 2005-05-01 12:09:37 | Re: Feature freeze date for 8.1 |