firtst release
Revision | b526f3286ac6c79702889fa7c978991bff59b439 (tree) |
---|---|
Time | 2020-02-13 20:42:45 |
Author | Junseok Yang <protodef@gmai...> |
Commiter | Kyotaro Horiguchi |
Use tuple-only mode to stablize EXPLAIN output containing @abs_srcdir@.
The line containing @abs_srcdir@ can be longer than the header line
and if it is, the test will fail. Use tuple-only mode to get rid of
the unstable part from the EXPLAIN output.
@@ -909,6 +909,9 @@ Parallel() | ||
909 | 909 | -> Parallel Seq Scan on p2_c3_c2 |
910 | 910 | (21 rows) |
911 | 911 | |
912 | +-- Use tuples-only mode so that long \@abs_srcdir\@ won't let the | |
913 | +-- following query make an unstable result. | |
914 | +\t | |
912 | 915 | -- Hints on unhintable relations are just ignored |
913 | 916 | /*+Parallel(p1 5 hard) Parallel(s1 3 hard) IndexScan(ft1) SeqScan(cte1) |
914 | 917 | TidScan(fs1) IndexScan(t) IndexScan(*VALUES*) */ |
@@ -934,8 +937,6 @@ Parallel(s1 3 hard) | ||
934 | 937 | duplication hint: |
935 | 938 | error hint: |
936 | 939 | |
937 | - QUERY PLAN | |
938 | ------------------------------------------------------------------------------------------------ | |
939 | 940 | Append |
940 | 941 | -> Result |
941 | 942 | -> Append |
@@ -969,8 +970,9 @@ error hint: | ||
969 | 970 | -> Function Scan on pg_stat_statements |
970 | 971 | -> Subquery Scan on "*SELECT* 5" |
971 | 972 | -> Values Scan on "*VALUES*" |
972 | -(33 rows) | |
973 | 973 | |
974 | +-- Turn off tuples-only mode | |
975 | +\t | |
974 | 976 | ALTER SYSTEM SET session_preload_libraries TO DEFAULT; |
975 | 977 | SELECT pg_reload_conf(); |
976 | 978 | pg_reload_conf |
@@ -170,6 +170,9 @@ EXPLAIN (COSTS false) SELECT * FROM p1; | ||
170 | 170 | Parallel(p1 8 hoge)Parallel(p1)Parallel(p1 100 soft x)*/ |
171 | 171 | EXPLAIN (COSTS false) SELECT id FROM p1 UNION ALL SELECT id FROM p2; |
172 | 172 | |
173 | +-- Use tuples-only mode so that long \@abs_srcdir\@ won't let the | |
174 | +-- following query make an unstable result. | |
175 | +\t | |
173 | 176 | -- Hints on unhintable relations are just ignored |
174 | 177 | /*+Parallel(p1 5 hard) Parallel(s1 3 hard) IndexScan(ft1) SeqScan(cte1) |
175 | 178 | TidScan(fs1) IndexScan(t) IndexScan(*VALUES*) */ |
@@ -183,6 +186,7 @@ SELECT userid FROM pg_stat_statements fs1 | ||
183 | 186 | UNION ALL |
184 | 187 | SELECT x FROM (VALUES (1), (2), (3)) t(x); |
185 | 188 | |
186 | - | |
189 | +-- Turn off tuples-only mode | |
190 | +\t | |
187 | 191 | ALTER SYSTEM SET session_preload_libraries TO DEFAULT; |
188 | 192 | SELECT pg_reload_conf(); |