Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 11 additions & 8 deletions src/test/regress/expected/bfv_cte.out
Original file line number Diff line number Diff line change
Expand Up @@ -490,18 +490,21 @@ select wait_until_query_output_to_file('/tmp/bfv_cte.out');
-- s/slice=4\): initialized xslice state/slice={2|4}): initialized xslice state/g
-- s/One-Time Filter: \(gp_execution_segment\(\) =\d+\)/One-Time Filter: \(gp_execution_segment\(\) =#\)/
-- end_matchsubs
-- Filter out irrelevant LOG messages from segments other than seg2.
\! cat /tmp/bfv_cte.out | grep -P '^(?!LOG)|^(LOG.*seg2)' | grep -vP 'LOG.*fault|decreased xslice state refcount'
SET
SET
SET
-- Filter out irrelevant LOG messages from segments other than seg2. The
-- LOG messages come from different QE processes over separate connections,
-- so the order in which the QD relays them is not deterministic. Print
-- them sorted, followed by the rest of the output.
\! grep -P '^LOG.*seg2' /tmp/bfv_cte.out | grep -vP 'LOG.*fault|decreased xslice state refcount' | LC_ALL=C sort; grep -vP '^LOG' /tmp/bfv_cte.out
LOG: SISC (shareid=0, slice=2): initialized xslice state (seg2 slice2 127.0.1.1:7004 pid=1049102)
LOG: SISC (shareid=0, slice=4): removed xslice state (seg2 slice4 127.0.1.1:7004 pid=1049114)
LOG: SISC READER (shareid=0, slice=2): wrote notify_done (seg2 slice2 127.0.1.1:7004 pid=1049102)
LOG: SISC WRITER (shareid=0, slice=4): initializing because squelched (seg2 slice4 127.0.1.1:7004 pid=1049114)
LOG: SISC WRITER (shareid=0, slice=4): No tuplestore yet, creating tuplestore (seg2 slice4 127.0.1.1:7004 pid=1049114)
LOG: SISC WRITER (shareid=0, slice=4): wrote notify_ready (seg2 slice4 127.0.1.1:7004 pid=1049114)
LOG: SISC WRITER (shareid=0, slice=4): got DONE message from 1 readers (seg2 slice4 127.0.1.1:7004 pid=1049114)
LOG: SISC (shareid=0, slice=4): removed xslice state (seg2 slice4 127.0.1.1:7004 pid=1049114)
LOG: SISC WRITER (shareid=0, slice=4): initializing because squelched (seg2 slice4 127.0.1.1:7004 pid=1049114)
LOG: SISC WRITER (shareid=0, slice=4): wrote notify_ready (seg2 slice4 127.0.1.1:7004 pid=1049114)
SET
SET
SET
SET
a | a
---+---
Expand Down
17 changes: 10 additions & 7 deletions src/test/regress/expected/bfv_cte_optimizer.out
Original file line number Diff line number Diff line change
Expand Up @@ -510,18 +510,21 @@ DETAIL: Falling back to Postgres-based planner because GPORCA does not support
-- s/slice=4\): initialized xslice state/slice={2|4}): initialized xslice state/g
-- s/One-Time Filter: \(gp_execution_segment\(\) =\d+\)/One-Time Filter: \(gp_execution_segment\(\) =#\)/
-- end_matchsubs
-- Filter out irrelevant LOG messages from segments other than seg2.
\! cat /tmp/bfv_cte.out | grep -P '^(?!LOG)|^(LOG.*seg2)' | grep -vP 'LOG.*fault|decreased xslice state refcount'
SET
SET
SET
-- Filter out irrelevant LOG messages from segments other than seg2. The
-- LOG messages come from different QE processes over separate connections,
-- so the order in which the QD relays them is not deterministic. Print
-- them sorted, followed by the rest of the output.
\! grep -P '^LOG.*seg2' /tmp/bfv_cte.out | grep -vP 'LOG.*fault|decreased xslice state refcount' | LC_ALL=C sort; grep -vP '^LOG' /tmp/bfv_cte.out
LOG: SISC (shareid=0, slice=1): removed xslice state (seg2 slice1 127.0.1.1:7004 pid=1048234)
LOG: SISC (shareid=0, slice=2): initialized xslice state (seg2 slice2 127.0.1.1:7004 pid=1048240)
LOG: SISC READER (shareid=0, slice=2): wrote notify_done (seg2 slice2 127.0.1.1:7004 pid=1048240)
LOG: SISC READER (shareid=0, slice=4): wrote notify_done (seg2 slice4 127.0.1.1:7004 pid=1048252)
LOG: SISC WRITER (shareid=0, slice=1): No tuplestore yet, creating tuplestore (seg2 slice1 127.0.1.1:7004 pid=1048234)
LOG: SISC WRITER (shareid=0, slice=1): wrote notify_ready (seg2 slice1 127.0.1.1:7004 pid=1048234)
LOG: SISC WRITER (shareid=0, slice=1): got DONE message from 2 readers (seg2 slice1 127.0.1.1:7004 pid=1048234)
LOG: SISC (shareid=0, slice=1): removed xslice state (seg2 slice1 127.0.1.1:7004 pid=1048234)
LOG: SISC WRITER (shareid=0, slice=1): wrote notify_ready (seg2 slice1 127.0.1.1:7004 pid=1048234)
SET
SET
SET
SET
a | a
---+---
Expand Down
7 changes: 5 additions & 2 deletions src/test/regress/sql/bfv_cte.sql
Original file line number Diff line number Diff line change
Expand Up @@ -326,8 +326,11 @@ select wait_until_query_output_to_file('/tmp/bfv_cte.out');
-- s/slice=4\): initialized xslice state/slice={2|4}): initialized xslice state/g
-- s/One-Time Filter: \(gp_execution_segment\(\) =\d+\)/One-Time Filter: \(gp_execution_segment\(\) =#\)/
-- end_matchsubs
-- Filter out irrelevant LOG messages from segments other than seg2.
\! cat /tmp/bfv_cte.out | grep -P '^(?!LOG)|^(LOG.*seg2)' | grep -vP 'LOG.*fault|decreased xslice state refcount'
-- Filter out irrelevant LOG messages from segments other than seg2. The
-- LOG messages come from different QE processes over separate connections,
-- so the order in which the QD relays them is not deterministic. Print
-- them sorted, followed by the rest of the output.
\! grep -P '^LOG.*seg2' /tmp/bfv_cte.out | grep -vP 'LOG.*fault|decreased xslice state refcount' | LC_ALL=C sort; grep -vP '^LOG' /tmp/bfv_cte.out

-- cleanup
select gp_inject_fault_infinite('all', 'reset', dbid) from gp_segment_configuration;
Expand Down
Loading