Re: [PATCH] pgbench: Bug fix for the -d option

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: miyake_kouta <miyake_kouta(at)oss(dot)nttdata(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: [PATCH] pgbench: Bug fix for the -d option
Date: 2021-02-26 11:30:27
Message-ID: YDjb0wtCj89OBiiC@paquier.xyz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Feb 26, 2021 at 05:16:17PM +0900, Michael Paquier wrote:
> Yes, the existing code could mess up with the selection logic if
> PGPORT and PGUSER are both specified in an environment, masking the
> value of PGUSER, so let's fix that. This is as old as 412893b.

By the way, I can help but wonder why pgbench has such a different
handling for the user name, fetching first PGUSER and then looking at
the options while most of the other binaries use get_user_name(). It
seems to me that we could simplify the handling around "login" without
really impacting the usefulness of the tool, no?
--
Michael

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2021-02-26 11:39:25 Re: [PATCH] pgbench: Remove ecnt, a member variable of CState
Previous Message Michael Paquier 2021-02-26 11:14:56 Re: Add --tablespace option to reindexdb