Re: Add table access method as an option to pgbench - Mailing list pgsql-hackers

From Andres Freund
Subject Re: Add table access method as an option to pgbench
Date
Msg-id 20210115212245.tmgnyemtalgcbbud@alap3.anarazel.de
Whole thread Raw
In response to Re: Add table access method as an option to pgbench  (Michael Paquier <michael@paquier.xyz>)
Responses Re: Add table access method as an option to pgbench  (Michael Paquier <michael@paquier.xyz>)
Re: Add table access method as an option to pgbench  (David Zhang <david.zhang@highgo.ca>)
List pgsql-hackers
Hi,

On 2020-11-25 12:41:25 +0900, Michael Paquier wrote:
> On Tue, Nov 24, 2020 at 03:32:38PM -0800, David Zhang wrote:
> > But, providing another option for the end user may not be a bad idea, and it
> > might make the tests easier at some points.
> 
> My first thought is that we have no need to complicate pgbench with
> this option because there is a GUC able to do that, but we do that for
> tablespaces, so...  No objections from here.

I think that objection is right. All that's needed to change this from
the client side is to do something like
PGOPTIONS='-c default_table_access_method=foo' pgbench ...

I don't think adding pgbench options for individual GUCs really is a
useful exercise?

Greetings,

Andres Freund



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Key management with tests
Next
From: Robert Haas
Date:
Subject: Re: Key management with tests