pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Dunstan <andrew@dunslane.net>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: pgbench: increase the maximum number of variables/arguments
Date: Mon, 11 Mar 2019 17:18:48 +0000
Message-ID: <E1h3OZc-0002dB-UX@gemulon.postgresql.org> (raw)

pgbench: increase the maximum number of variables/arguments

pgbench's arbitrary limit of 10 arguments for SQL statements or
metacommands is far too low. Increase it to 256.

This results in a very modest increase in memory usage, not enough to
worry about.

The maximum includes the SQL statement or metacommand. This is reflected
in the comments and revised TAP tests.

Simon Riggs and Dagfinn Ilmari Mannsåker with some light editing by me.
Reviewed by: David Rowley and Fabien Coelho

Discussion: https://postgr.es/m/CANP8+jJiMJOAf-dLoHuR-8GENiK+eHTY=Omw38Qx7j2g0NDTXA@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/a47841528107921f02c280e0c5f91c5a1d86adb0

Modified Files
--------------
doc/src/sgml/ref/pgbench.sgml                |  2 ++
src/bin/pgbench/pgbench.c                    | 15 ++++++++++++++-
src/bin/pgbench/t/001_pgbench_with_server.pl | 28 +++++-----------------------
3 files changed, 21 insertions(+), 24 deletions(-)



Message-ID: <E1h3OZc-0002dB-UX@gemulon.postgresql.org>
Permalink:  ../E1h3OZc-0002dB-UX@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1h3OZc-0002dB-UX@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: andrew@dunslane.net
  Subject: Re: pgsql: pgbench: increase the maximum number of variables/arguments
  In-Reply-To: <E1h3OZc-0002dB-UX@gemulon.postgresql.org>
  References: <E1h3OZc-0002dB-UX@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox