Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tW51k-00E0kb-Vj for pgsql-hackers@arkaria.postgresql.org; Fri, 10 Jan 2025 02:45:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tW51k-00BEf5-1U for pgsql-hackers@arkaria.postgresql.org; Fri, 10 Jan 2025 02:45:35 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tW51j-00BEYW-Hg for pgsql-hackers@lists.postgresql.org; Fri, 10 Jan 2025 02:45:35 +0000 Received: from m16.mail.163.com ([117.135.210.5]) by magus.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1tW51b-000prH-1S for pgsql-hackers@postgresql.org; Fri, 10 Jan 2025 02:45:32 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-ID:MIME-Version: Content-Type; bh=LubCyYTB2ZYSx+G57EAbxFVxgjuEdO75fuQrmfaU+aI=; b=JYjk0wyoy8wamgQfkTiIIQap74+EWCMaobiQANG7BY519aNNH6O1LQ9AMWWFfM ks9B0Yy3MAykcr7XXoYgMJARjxqNhfKB8FuNoDfAIMdbq6LGQhWXMxPA3DVOhfjn YZTbZNzl7OpvCLV1p40yFfx0cqZr8mEjhqmOhTbkehQ2c= Received: from lovely-coding (unknown []) by gzga-smtp-mtada-g1-3 (Coremail) with SMTP id _____wDnT6zBiYBnAh2HFA--.6413S3; Fri, 10 Jan 2025 10:45:21 +0800 (CST) From: Andy Fan To: pgsql-hackers Subject: pgbench error: (setshell) of script 0; execution of meta-command failed Date: Fri, 10 Jan 2025 02:45:21 +0000 Message-ID: <87msfz5qv2.fsf@163.com> MIME-Version: 1.0 Content-Type: text/plain X-CM-TRANSID:_____wDnT6zBiYBnAh2HFA--.6413S3 X-Coremail-Antispam: 1Uf129KBjvdXoW7Xry8Xr4xXw4UZFyrCr4rZrb_yoW3JFb_K3 ykt34DWrsxXr4UGr13Wr1ftrZxX3yfXryYqr18XF1jgFWIyF9Fg3ykuw13Za4rGr4kt3s0 ya17K343ua17WjkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7xRi2YpUUUUUU== X-Originating-IP: [219.151.179.207] X-CM-SenderInfo: x2klx3xlid0iqsrtqiywtou0bp/xtbBZwbQU2eAemz5LAACsE List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi: I run into the {subject} issue with the below setup. cat foo.sql \setshell txn_mode echo ${TXN_MODE} \setshell speed echo ${SPEED} \setshell sleep_ms echo ${SLEEP_MS} \setshell subtxn_mode echo ${SUBTXN_MODE} select 1; $ TXN_MODE=-1 SPEED=1 SLEEP_MS=0 SUBTXN_MODE=-1 pgbench -n -ffoo.sql postgres -T5 -c4 --exit-on-abort I *randomly*(7/8) get errors like: pgbench (18devel) pgbench: error: client 2 aborted in command 0 (setshell) of script 0; execution of meta-command failed pgbench: error: Run was aborted due to an error in thread 0 I debug this for 1+ hour and didn't find anything useful, so I'd like have a ask if there is any known issue or the way I use \setshell is wrong? Thanks -- Best Regards Andy Fan