pgbench MAX_ARGS - Mailing list pgsql-hackers

From Simon Riggs
Subject pgbench MAX_ARGS
Date
Msg-id CANP8+jJiMJOAf-dLoHuR-8GENiK+eHTY=Omw38Qx7j2g0NDTXA@mail.gmail.com
Whole thread Raw
Responses Re: pgbench MAX_ARGS  (Fabien COELHO <coelho@cri.ensmp.fr>)
List pgsql-hackers
pgbench has a strange restriction to only allow 10 arguments, which is too low for some real world uses. 

Since MAX_ARGS is only used for an array of pointers and an array of integers increasing this should not be a problem, so increase value to 255.

While there, correct an off by one error in the error message when you hit the limit. The highest argument id is MAX_ARGS - 1, but the max number of arguments is MAX_ARGS.

--
Simon Riggs                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Attachment

pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: pgsql: Avoid creation of the free space map for small heaprelations, t
Next
From: Masahiko Sawada
Date:
Subject: Re: [HACKERS] Block level parallel vacuum