Re: Small TAP improvements

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Small TAP improvements
Дата
Msg-id YqpyC27mNuFck9w/@paquier.xyz
обсуждение исходный текст
Ответ на Re: Small TAP improvements  (Andrew Dunstan <andrew@dunslane.net>)
Список 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

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: "buffer too small" or "path too long"?
Следующее
От: Mark Dilger
Дата:
Сообщение: Modest proposal to extend TableAM API for controlling cluster commands