From: | Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com> |
---|---|
To: | Simon Riggs <simon(at)2ndQuadrant(dot)com> |
Cc: | pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Hot Standby on git |
Date: | 2009-10-09 17:49:25 |
Message-ID: | 4ACF77A5.1070706@enterprisedb.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
While playing with conflict resolution, I bumped into this:
postgres=# begin ISOLATION LEVEL SERIALIZABLE;
BEGIN
postgres=# SELECT * FROM foo;
id | data
----+------
12 |
(1 row)
postgres=# SELECT * FROM foo;
id | data
----+------
12 |
(1 row)
postgres=# SELECT * FROM foo;
id | data
----+------
12 |
(1 row)
postgres=# SELECT * FROM foo;
id | data
----+------
12 |
(1 row)
postgres=# SELECT * FROM foo;
id | data
----+------
12 |
(1 row)
postgres=# SELECT * FROM foo;
ERROR: canceling statement due to conflict with recovery
postgres=# SELECT * FROM foo;
id | data
----+------
13 |
(1 row)
postgres=# SELECT * FROM foo;
id | data
----+------
13 |
(1 row)
postgres=# begin ISOLATION LEVEL SERIALIZABLE;
id | data
----+------
13 |
(1 row)
postgres=# SELECT * FROM foo;
BEGIN
postgres=# SELECT * FROM foo;
id | data
----+------
13 |
(1 row)
The backend and the frontend seem to go out of sync, when a conflict
happens in idle-in-transaction mode.
--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com
From | Date | Subject | |
---|---|---|---|
Next Message | Heikki Linnakangas | 2009-10-09 17:50:31 | Re: Hot Standby on git |
Previous Message | Bruce Momjian | 2009-10-09 17:21:53 | Re: Hot Standby 0.2.1 |