mirror of
https://git.postgresql.org/git/postgresql.git
synced 2026-02-13 01:47:05 +08:00
Make some subquery-using test cases a bit more robust.
These test cases could be adversely affected by an upcoming change to allow pullup of FROM-less subqueries. Tweak them to ensure that they'll continue to test what they did before. Discussion: https://postgr.es/m/5395.1539275668@sss.pgh.pa.us
This commit is contained in:
@ -427,9 +427,9 @@ EXECUTE pstmt('1', make_some_array(1,2));
|
||||
DEALLOCATE pstmt;
|
||||
|
||||
-- test interaction between subquery and partial_paths
|
||||
SET LOCAL min_parallel_table_scan_size TO 0;
|
||||
CREATE VIEW tenk1_vw_sec WITH (security_barrier) AS SELECT * FROM tenk1;
|
||||
EXPLAIN (COSTS OFF)
|
||||
SELECT 1 FROM tenk1_vw_sec WHERE EXISTS (SELECT 1 WHERE unique1 = 0);
|
||||
SELECT 1 FROM tenk1_vw_sec
|
||||
WHERE (SELECT sum(f1) FROM int4_tbl WHERE f1 < unique1) < 100;
|
||||
|
||||
rollback;
|
||||
|
||||
Reference in New Issue
Block a user