Re: pgbench: Skipping the creating primary keys after initialization
Masahiko Sawada <sawada.mshk@gmail.com>
From: Masahiko Sawada <sawada.mshk@gmail.com>
To: Fabien COELHO <coelho@cri.ensmp.fr>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, Robert Haas <robertmhaas@gmail.com>, PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2017-09-06T05:46:47Z
Lists: pgsql-hackers
Attachments
- pgbench_custom_initialization_v11.patch (text/x-patch) patch v11
On Wed, Sep 6, 2017 at 12:11 AM, Fabien COELHO <coelho@cri.ensmp.fr> wrote: > >> Sorry, I don't follow that. You meant I should add a newline before >> pg_realloc()? That is, >> >> + initialize_cmds = >> + (char *) pg_realloc(initialize_cmds, >> + sizeof(char) * n_cmds + >> 1); > > > Yes. Or maybe my terminal was doing tricks, because I had the impression > that both argument where on the same line with many tabs in between, but > maybe I just misinterpreted the diff file. My apology if it is the case. > I understood. It looks ugly in the patch but can be applied properly by git apply command. Attached latest patch incorporated the comments I got so far. Regards, -- Masahiko Sawada NIPPON TELEGRAPH AND TELEPHONE CORPORATION NTT Open Source Software Center
Commits
-
Allow running just selected steps of pgbench's initialization sequence.
- 591c504fad0d 11.0 landed