forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitf03d228
committed
HeapTupleSatisfiesVacuum() needs to be more careful about the
difference between INSERT_IN_PROGRESS and DELETE_IN_PROGRESS fortuples inserted and then deleted by a concurrent transaction.Example of bug:regression=# create table foo (f1 int);CREATE TABLEregression=# begin;BEGINregression=# insert into foo values(1);INSERT 195531 1regression=# delete from foo;DELETE 1regression=# insert into foo values(1);INSERT 195532 1regression=# create unique index fooi on foo(f1);ERROR: could not create unique indexDETAIL: Table contains duplicated values.1 parent278a13f commitf03d228
1 file changed
+11
-2
lines changedLines changed: 11 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
19 |
| - | |
| 19 | + | |
20 | 20 |
| |
21 | 21 |
| |
22 | 22 |
| |
| |||
868 | 868 |
| |
869 | 869 |
| |
870 | 870 |
| |
871 |
| - | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
872 | 881 |
| |
873 | 882 |
| |
874 | 883 |
| |
|
0 commit comments
Comments
(0)