Re: Small TAP improvements - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Small TAP improvements
Date
Msg-id YqpyC27mNuFck9w/@paquier.xyz
Whole thread Raw
In response to Re: Small TAP improvements  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
On Wed, Jun 15, 2022 at 07:59:10AM -0400, Andrew Dunstan wrote:
> My would we do that? If you want a map don't pass any switches. But as
> written you could do:
>
> my ($incdir, $localedir, $sharedir) = $node->config_data(qw(--includedir --localedir --sharedir));
>
> No map needed to get what you want, in fact a map would get in the
> way.

Nice, I didn't know you could do that.  That's a pattern worth
mentioning in the perldoc part as an example, in my opinion.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: "buffer too small" or "path too long"?
Next
From: Mark Dilger
Date:
Subject: Modest proposal to extend TableAM API for controlling cluster commands