Accept regression diffs in 'portal' test case.
authorPavan Deolasee <[email protected]>
Fri, 28 Sep 2018 07:40:17 +0000 (13:10 +0530)
committerPavan Deolasee <[email protected]>
Fri, 28 Sep 2018 07:40:17 +0000 (13:10 +0530)
One change relates to the addition of Remote Subplan node and the other relates
to our lack of support for WHERE CURRENT OF

src/test/regress/expected/portals_1.out

index fabf3024427c63014d3c9a7b7c7b3ef5a18ed39e..13163f9d53fde77cdc60ebfb0d817960217f09c7 100644 (file)
@@ -1173,6 +1173,29 @@ FETCH FROM c1;
 DELETE FROM ucview WHERE CURRENT OF c1; -- fail, views not supported
 ERROR:  WHERE CURRENT OF clause not yet supported
 ROLLBACK;
+-- Check WHERE CURRENT OF with an index-only scan
+BEGIN;
+EXPLAIN (costs off)
+DECLARE c1 CURSOR FOR SELECT stringu1 FROM onek WHERE stringu1 = 'DZAAAA';
+                     QUERY PLAN                      
+-----------------------------------------------------
+ Remote Subquery Scan on all (datanode_1,datanode_2)
+   ->  Index Only Scan using onek_stringu1 on onek
+         Index Cond: (stringu1 = 'DZAAAA'::name)
+(3 rows)
+
+DECLARE c1 CURSOR FOR SELECT stringu1 FROM onek WHERE stringu1 = 'DZAAAA';
+FETCH FROM c1;
+ stringu1 
+----------
+ DZAAAA
+(1 row)
+
+DELETE FROM onek WHERE CURRENT OF c1;
+ERROR:  WHERE CURRENT OF clause not yet supported
+SELECT stringu1 FROM onek WHERE stringu1 = 'DZAAAA';
+ERROR:  current transaction is aborted, commands ignored until end of transaction block
+ROLLBACK;
 -- Make sure snapshot management works okay, per bug report in
 BEGIN;