Create a table, insert a couple of rows, then EXPLAIN a query run against it:
% psql -c 'CREATE TABLE foo (id int); INSERT INTO foo VALUES (1), (2);' INSERT 0 2 % psql -c 'EXPLAIN select count(*) from foo' QUERY PLAN --------------------------------------------------------------------------------------- Aggregate (cost=2.50..2.51 rows=1 width=0) -> Data Node Scan on "__REMOTE_GROUP_QUERY__" (cost=0.00..0.00 rows=1000 width=0) Node/s: rptdata01, rptdata02, rptdata03, rptdata04
So far so good. Now ask for another explain format:
% psql -c 'EXPLAIN (FORMAT YAML) select count(*) from foo' connection to server was lost
Oy. The log for my coordinator looks like this:
2014-02-24 11:56:41 PST 22325 530659c2.5735 LOG: server process (PID 772) was terminated by signal 11: Segmentation fault 2014-02-24 11:56:41 PST 22325 530659c2.5735 DETAIL: Failed process was running: EXPLAIN (FORMAT YAML) select count(*) from foo 2014-02-24 11:56:41 PST 22325 530659c2.5735 LOG: terminating any other active server processes 2014-02-24 11:56:41 PST 610 530ba39c.262 WARNING: terminating connection because of crash of another server process 2014-02-24 11:56:41 PST 610 530ba39c.262 DETAIL: The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corrupted shared memory. 2014-02-24 11:56:41 PST 610 530ba39c.262 HINT: In a moment you should be able to reconnect to the database and repeat your command. 2014-02-24 11:56:41 PST 22325 530659c2.5735 LOG: all server processes terminated; reinitializing 2014-02-24 11:56:41 PST 774 530ba3f9.306 LOG: database system was interrupted; last known up at 2014-02-24 11:55:08 PST 2014-02-24 11:56:41 PST 774 530ba3f9.306 LOG: database system was not properly shut down; automatic recovery in progress 2014-02-24 11:56:41 PST 774 530ba3f9.306 LOG: redo starts at 0/2D4A788 2014-02-24 11:56:41 PST 774 530ba3f9.306 LOG: record with zero length at 0/2D4A7E8 2014-02-24 11:56:41 PST 774 530ba3f9.306 LOG: redo done at 0/2D4A7B8 2014-02-24 11:56:41 PST 774 530ba3f9.306 LOG: last completed transaction was at log time 2014-02-24 19:56:08.535355+00 2014-02-24 11:56:41 PST 778 530ba3f9.30a LOG: autovacuum launcher started 2014-02-24 11:56:41 PST 22325 530659c2.5735 LOG: database system is ready to accept connections
Nothing appears in the logs for any other data node or coordinator.