diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2003-09-22 00:47:23 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2003-09-22 00:47:23 +0000 |
commit | f03d2284c093ab417093054b44c987b8c48514c2 (patch) | |
tree | b537a3e414c93912e32d11199b7d48f92252ed35 /src/backend/utils/adt/array_userfuncs.c | |
parent | 278a13fe476f9ad5699f65c34543fee14cc1e4af (diff) | |
download | postgresql-f03d2284c093ab417093054b44c987b8c48514c2.tar.gz postgresql-f03d2284c093ab417093054b44c987b8c48514c2.zip |
HeapTupleSatisfiesVacuum() needs to be more careful about the
difference between INSERT_IN_PROGRESS and DELETE_IN_PROGRESS for
tuples inserted and then deleted by a concurrent transaction.
Example of bug:
regression=# create table foo (f1 int);
CREATE TABLE
regression=# begin;
BEGIN
regression=# insert into foo values(1);
INSERT 195531 1
regression=# delete from foo;
DELETE 1
regression=# insert into foo values(1);
INSERT 195532 1
regression=# create unique index fooi on foo(f1);
ERROR: could not create unique index
DETAIL: Table contains duplicated values.
Diffstat (limited to 'src/backend/utils/adt/array_userfuncs.c')
0 files changed, 0 insertions, 0 deletions