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: