From fc50362470a7cd1adfab1fa0f35648afee82a1cf Mon Sep 17 00:00:00 2001 From: Alexey Bodanyuk <144894236+wfa22@users.noreply.github.com> Date: Sun, 25 Oct 2026 15:12:05 +0300 Subject: [PATCH] =?UTF-8?q?bench:=20SQL=20=D1=81=D0=B8=D0=BD=D1=82=D0=B5?= =?UTF-8?q?=D1=82=D0=B8=D0=BA=D0=B8=20=D1=87=D0=B5=D1=80=D0=B5=D0=B7=20std?= =?UTF-8?q?in=20psql=20(=D0=BB=D0=B8=D0=BC=D0=B8=D1=82=20=D0=BA=D0=BE?= =?UTF-8?q?=D0=BC=D0=B0=D0=BD=D0=B4=D0=BD=D0=BE=D0=B9=20=D1=81=D1=82=D1=80?= =?UTF-8?q?=D0=BE=D0=BA=D0=B8=20Windows)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- bench/reconcile_cost.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bench/reconcile_cost.py b/bench/reconcile_cost.py index 81255f3..8de1ba6 100644 --- a/bench/reconcile_cost.py +++ b/bench/reconcile_cost.py @@ -59,8 +59,9 @@ def compose(*args: str, stdin: str | None = None, timeout: float = 1800, check: def psql(sql: str) -> str: + """SQL through stdin: a 5000-row INSERT does not fit into a Windows command line (32 KiB).""" return compose("exec", "-T", "postgres", "psql", "-U", "messenger", "-d", "messenger", "-At", "-v", - "ON_ERROR_STOP=1", "-c", sql).stdout.strip() + "ON_ERROR_STOP=1", "-f", "-", stdin=sql).stdout.strip() def s3_bulk(op: str, keys: list[str]) -> None: