diff options
author | Tomas Vondra | 2017-08-30 23:33:26 +0000 |
---|---|---|
committer | Tomas Vondra | 2017-08-30 23:33:26 +0000 |
commit | a3d439974e7ac4f877ca857d6900f1bdc6293754 (patch) | |
tree | 4ec4a1a274bddea96d5092692e18ecf67c199b12 | |
parent | af08e3f57e49367acebc8da57ebbe398bcb9e982 (diff) |
Accept differences in tsm_system_time contrib module
Trivial plan changes and missing bits (likely due to incorrect merge
or something like that).
-rw-r--r-- | contrib/tsm_system_time/expected/tsm_system_time.out | 46 |
1 files changed, 29 insertions, 17 deletions
diff --git a/contrib/tsm_system_time/expected/tsm_system_time.out b/contrib/tsm_system_time/expected/tsm_system_time.out index c9557713a1..c0036d1117 100644 --- a/contrib/tsm_system_time/expected/tsm_system_time.out +++ b/contrib/tsm_system_time/expected/tsm_system_time.out @@ -11,6 +11,13 @@ SELECT count(*) FROM test_tablesample TABLESAMPLE system_time (0); 0 (1 row) +-- ... and we assume that this will finish before running out of time: +SELECT count(*) FROM test_tablesample TABLESAMPLE system_time (100000); + count +------- + 31 +(1 row) + -- bad parameters should get through planning, but not execution: EXPLAIN (COSTS OFF) SELECT id FROM test_tablesample TABLESAMPLE system_time (-1); @@ -35,17 +42,16 @@ SELECT * FROM (VALUES (0),(100000)) v(time), LATERAL (SELECT COUNT(*) FROM test_tablesample TABLESAMPLE system_time (100000)) ss; - QUERY PLAN ------------------------------------------------------------------------------------- + QUERY PLAN +------------------------------------------------------------------------------ Nested Loop -> Aggregate -> Remote Subquery Scan on all (datanode_1,datanode_2) - -> Aggregate - -> Materialize - -> Sample Scan on test_tablesample - Sampling: system_time ('100000'::double precision) + -> Materialize + -> Sample Scan on test_tablesample + Sampling: system_time ('100000'::double precision) -> Values Scan on "*VALUES*" -(8 rows) +(7 rows) SELECT * FROM (VALUES (0),(100000)) v(time), @@ -62,17 +68,26 @@ SELECT * FROM (VALUES (0),(100000)) v(time), LATERAL (SELECT COUNT(*) FROM test_tablesample TABLESAMPLE system_time (time)) ss; - QUERY PLAN ----------------------------------------------------------------------------- + QUERY PLAN +---------------------------------------------------------------------- Nested Loop -> Values Scan on "*VALUES*" -> Aggregate -> Remote Subquery Scan on all (datanode_1,datanode_2) - -> Aggregate - -> Materialize - -> Sample Scan on test_tablesample - Sampling: system_time ("*VALUES*".column1) -(8 rows) + -> Materialize + -> Sample Scan on test_tablesample + Sampling: system_time ("*VALUES*".column1) +(7 rows) + +SELECT * FROM + (VALUES (0),(100000)) v(time), + LATERAL (SELECT COUNT(*) FROM test_tablesample + TABLESAMPLE system_time (time)) ss; + time | count +--------+------- + 0 | 0 + 100000 | 31 +(2 rows) CREATE VIEW vv AS SELECT * FROM test_tablesample TABLESAMPLE system_time (20); @@ -88,6 +103,3 @@ DROP EXTENSION tsm_system_time; -- fail, view depends on extension ERROR: cannot drop extension tsm_system_time because other objects depend on it DETAIL: view vv depends on function system_time(internal) HINT: Use DROP ... CASCADE to drop the dependent objects too. -DROP VIEW vv; -DROP TABLE test_tablesample; -DROP EXTENSION tsm_system_time; |