Re: psql - improve test coverage from 41% to 88% - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: psql - improve test coverage from 41% to 88%
Date
Msg-id 20190912151416.GA23601@alvherre.pgsql
Whole thread Raw
In response to Re: psql - improve test coverage from 41% to 88%  (Fabien COELHO <coelho@cri.ensmp.fr>)
Responses Re: psql - improve test coverage from 41% to 88%
List pgsql-hackers
I think the TestLib.pm changes should be done separately, not together
with the rest of the hacking in this patch.

Mostly, because I think they're going to cause trouble.  Adding a
parameter in the middle of the list may cause trouble for third-party
users of TestLib.  I propose that we make the routines a bit smarter to
cope with the API change: use named parameters instead.  And in order to
do that without having to change existing users of command_check, make
it so that the routine checks whether the parameter is a hashref, and
behave differently.  So when called as in the existing callsites (five
scalar paramters) it behaves as currently.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: (Re)building index using itself or another index of the same table
Next
From: Alvaro Herrera
Date:
Subject: Re: Implementing Incremental View Maintenance