projects
/
users
/
andresfreund
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf6b217
)
bdr: Place assertion forbidding expression unique indexes more precisely.
author
Andres Freund
<
[email protected]
>
Thu, 1 May 2014 13:50:23 +0000
(15:50 +0200)
committer
Andres Freund
<
[email protected]
>
Thu, 3 Jul 2014 15:55:30 +0000
(17:55 +0200)
contrib/bdr/bdr_apply.c
patch
|
blob
|
blame
|
history
diff --git
a/contrib/bdr/bdr_apply.c
b/contrib/bdr/bdr_apply.c
index 759d1f904b9f30b821c5f79a9fc906ea4b392d9c..53d6baa8c48c33c31f09ecd2f104ca4812ff9175 100644
(file)
--- a/
contrib/bdr/bdr_apply.c
+++ b/
contrib/bdr/bdr_apply.c
@@
-347,11
+347,11
@@
process_remote_insert(StringInfo s)
IndexInfo *ii = relinfo->ri_IndexRelationInfo[i];
bool found = false;
- Assert(ii->ii_Expressions == NIL);
-
if (!ii->ii_Unique)
continue;
+ Assert(ii->ii_Expressions == NIL);
+
/* if conflict: wait */
found = find_pkey_tuple(index_keys[i],
rel, relinfo->ri_IndexRelationDescs[i],