Be less verbose for printing worker ports in intermediate_results

pull/2671/head
Onder Kalaci 2019-04-17 14:48:37 +03:00
parent b3af5b2cc4
commit 753163b4d8
2 changed files with 8 additions and 2 deletions

View File

@ -78,16 +78,17 @@ ORDER BY x;
(3 rows)
END;
-- don't print the worker port
\set VERBOSITY terse
-- files should now be cleaned up
SELECT x, x2
FROM interesting_squares JOIN (SELECT * FROM read_intermediate_result('squares', 'binary') AS res (x text, x2 int)) squares ON (x = interested_in)
WHERE user_id = 'jon'
ORDER BY x;
WARNING: result "squares" does not exist
CONTEXT: while executing command on localhost:57638
WARNING: result "squares" does not exist
CONTEXT: while executing command on localhost:57637
ERROR: could not receive query results
\set VERBOSITY DEFAULT
-- try to read the file as text, will fail because of binary encoding
BEGIN;
SELECT create_intermediate_result('squares', 'SELECT s, s*s FROM generate_series(1,5) s');

View File

@ -38,12 +38,17 @@ JOIN (SELECT * FROM read_intermediate_result('squares', 'binary') AS res (x int,
ORDER BY x;
END;
-- don't print the worker port
\set VERBOSITY terse
-- files should now be cleaned up
SELECT x, x2
FROM interesting_squares JOIN (SELECT * FROM read_intermediate_result('squares', 'binary') AS res (x text, x2 int)) squares ON (x = interested_in)
WHERE user_id = 'jon'
ORDER BY x;
\set VERBOSITY DEFAULT
-- try to read the file as text, will fail because of binary encoding
BEGIN;
SELECT create_intermediate_result('squares', 'SELECT s, s*s FROM generate_series(1,5) s');