Accept plan changes in tsm_system_rows contrib module
authorTomas Vondra <[email protected]>
Wed, 30 Aug 2017 23:31:55 +0000 (01:31 +0200)
committerTomas Vondra <[email protected]>
Wed, 30 Aug 2017 23:31:55 +0000 (01:31 +0200)
Trivial changes due to distributing the queries.

contrib/tsm_system_rows/expected/tsm_system_rows.out

index 87b4a8fc64bd222438b14dbce830923f862b0c6a..b51550b07af200608fd663a66d117ea5802fdbdb 100644 (file)
@@ -30,11 +30,13 @@ SELECT count(*) FROM test_tablesample TABLESAMPLE system_rows (100);
 -- bad parameters should get through planning, but not execution:
 EXPLAIN (COSTS OFF)
 SELECT id FROM test_tablesample TABLESAMPLE system_rows (-1);
-               QUERY PLAN               
-----------------------------------------
- Sample Scan on test_tablesample
-   Sampling: system_rows ('-1'::bigint)
-(2 rows)
+                  QUERY PLAN                  
+----------------------------------------------
+ Remote Fast Query Execution
+   Node/s: datanode_1, datanode_2
+   ->  Sample Scan on test_tablesample
+         Sampling: system_rows ('-1'::bigint)
+(4 rows)
 
 SELECT id FROM test_tablesample TABLESAMPLE system_rows (-1);
 ERROR:  sample size must not be negative
@@ -49,14 +51,15 @@ SELECT * FROM
   (VALUES (0),(10),(100)) v(nrows),
   LATERAL (SELECT count(*) FROM test_tablesample
            TABLESAMPLE system_rows (nrows)) ss;
-                        QUERY PLAN                        
-----------------------------------------------------------
+                           QUERY PLAN                            
+-----------------------------------------------------------------
  Nested Loop
    ->  Values Scan on "*VALUES*"
    ->  Aggregate
-         ->  Sample Scan on test_tablesample
-               Sampling: system_rows ("*VALUES*".column1)
-(5 rows)
+         ->  Remote Subquery Scan on all (datanode_1,datanode_2)
+               ->  Sample Scan on test_tablesample
+                     Sampling: system_rows ("*VALUES*".column1)
+(6 rows)
 
 SELECT * FROM
   (VALUES (0),(10),(100)) v(nrows),