Re: pgbench -M option can be specified more than once - Mailing list pgsql-hackers

From Tom Lane
Subject Re: pgbench -M option can be specified more than once
Date
Msg-id 30255.1541214451@sss.pgh.pa.us
Whole thread Raw
In response to Re: pgbench -M option can be specified more than once  (Andres Freund <andres@anarazel.de>)
Responses Re: pgbench -M option can be specified more than once  (Tatsuo Ishii <ishii@sraoss.co.jp>)
List pgsql-hackers
Andres Freund <andres@anarazel.de> writes:
> On 2018-11-03 10:12:14 +0900, Tatsuo Ishii wrote:
>> One of my colleagues actually believed that if both "-M extended" and
>> "-M prepared" were specified, pgbench runs in mixture of those
>> modes. So I felt avoiding such misunderstanding is more important.

> I regularly specify options multiple times, and I'd hate for that to not
> work anymore.  It's really useful to set defaults for scripts that then
> can be overwritten by the caller by passing on "$@" (i.e. all script
> arguments).

Yeah, there's an ancient tradition that "last switch wins" when receiving
conflicting command-line options.  I think we should tread very carefully
in breaking that.

            regards, tom lane


pgsql-hackers by date:

Previous
From: Corey Huinker
Date:
Subject: Re: COPY FROM WHEN condition
Next
From: Amit Kapila
Date:
Subject: Re: zheap: a new storage format for PostgreSQL