On Thu, 24 Jan 2019 at 04:45, Fabien COELHO <coe...@cri.ensmp.fr> wrote:
> I still do not understand the need for another variable. > > int ninserts = 0; // default is to use copy > while (getopt...) > { > switch (...) { > case "--inserts": > if (ninserts == 0) ninserts = 1; > break; > case "--rows-per-insert": > ninserts = arg_value; > checks... > break; > ... I didn't think of that. Attached is a version that changes it to work along those lines. -- David Rowley http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services
pg_dump-rows-per-insert-option_v12.patch
Description: Binary data