# Copyright (c) 2026, PostgreSQL Global Development Group use strict; use warnings FATAL => 'all'; use PostgreSQL::Test::Cluster; use PostgreSQL::Test::Utils; use Test::More; my $node = PostgreSQL::Test::Cluster->new('one_c_explain_dml'); $node->init; $node->start; my ($out, $err) = run_command( [ 'libpq_testclient', '--explain-dml-completion', $node->connstr('postgres') ]); is($? >> 8, 0, 'libpq_testclient explain-dml mode exited successfully'); like($out, qr/EXPLAIN_DML_COMPLETION PASS/, 'explain-dml completion checks passed'); is($err, '', 'libpq_testclient explain-dml mode produced no stderr'); done_testing();