Accept trivial plan change in xc_for_update test
authorTomas Vondra <tomas@2ndquadrant.com>
Fri, 14 Jul 2017 22:47:35 +0000 (00:47 +0200)
committerTomas Vondra <tomas@2ndquadrant.com>
Fri, 14 Jul 2017 22:47:35 +0000 (00:47 +0200)
The join is detected to be unique, which is indicated by 'Inner Unique'
key in the explain plan.

src/test/regress/expected/xc_for_update.out

index e74d015b02575b7a56530e20bc9a8b581bdd063d..396b80738716c5fe671dd4e3a3db4786b922bb38 100644 (file)
@@ -299,6 +299,7 @@ explain (costs off, num_nodes off, nodes off, verbose on)  select * from t1 wher
    Output: t1.val, t1.val2
    ->  Hash Join
          Output: t1.val, t1.val2
+         Inner Unique: true
          Hash Cond: (t1.val = "ANY_subquery".val)
          ->  Seq Scan on public.t1
                Output: t1.val, t1.val2
@@ -313,7 +314,7 @@ explain (costs off, num_nodes off, nodes off, verbose on)  select * from t1 wher
                                  Output: t2.val, t2.ctid
                                  ->  Seq Scan on public.t2
                                        Output: t2.val, t2.ctid
-(18 rows)
+(19 rows)
 
 -- test multiple row marks
 explain (costs off, num_nodes off, nodes off, verbose on)  select * from t1, t2 for share of t2 for update of t1;