From: | Michael Paquier <michael(at)paquier(dot)xyz> |
---|---|
To: | Andrew Dunstan <andrew(at)dunslane(dot)net> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Álvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>, "pgsql-hackers(at)lists(dot)postgresql(dot)org" <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Small TAP improvements |
Date: | 2022-06-15 23:58:03 |
Message-ID: | YqpyC27mNuFck9w/@paquier.xyz |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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
From | Date | Subject | |
---|---|---|---|
Next Message | Mark Dilger | 2022-06-16 00:21:56 | Modest proposal to extend TableAM API for controlling cluster commands |
Previous Message | Michael Paquier | 2022-06-15 23:48:57 | Re: "buffer too small" or "path too long"? |