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;