pgbench: Skipping the creating primary keys after initialization

From: Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: pgbench: Skipping the creating primary keys after initialization
Date: 2017-08-02 01:49:50
Views: Raw Message | Whole Thread | Download mbox
Lists: pgsql-hackers

Hi all,

I'd like to propose a new option -I for pgbench command which skips
the creating primary keys after initialized tables. This option is
useful for users who want to do bench marking with no index or indexes
other than btree primary index. If we initialize pgbench tables at a
large number scale factor the primary key index creation takes a long
time even if we're going to use other types of indexes. With this
option, the initialization time is reduced and you can create indexes
as you want.

Feedback is very welcome. I'll add this patch to the next CF.


Masahiko Sawada
NTT Open Source Software Center

Attachment Content-Type Size
skip_building_pkeys_after_initialized.patch application/octet-stream 4.2 KB


Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Langote 2017-08-02 01:53:48 Re: Partitioning vs ON CONFLICT
Previous Message Amit Langote 2017-08-02 01:44:58 Re: A bug in mapping attributes in ATExecAttachPartition()