Re: [HACKERS] TAP: allow overriding PostgresNode in get_new_node

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: [HACKERS] TAP: allow overriding PostgresNode in get_new_node
Дата
Msg-id 20170725231241.lrnxkc645fhaosyv@alvherre.pgsql
обсуждение исходный текст
Ответ на Re: [HACKERS] TAP: allow overriding PostgresNode in get_new_node  (Chapman Flack <chap@anastigmatix.net>)
Ответы Re: [HACKERS] TAP: allow overriding PostgresNode in get_new_node  (Craig Ringer <craig@2ndquadrant.com>)
Список pgsql-hackers
Chapman Flack wrote:

> Any takers if I propose this amendment in the form of a patch?
> 
> Relying on the perl idiom instead of a $node->isa() test shortens
> the patch; does that ameliorate at all the concern about complicating
> core for the benefit of modules?

Yeah, I like this (I also got word from Abhijit Menon-Sen that this is a
saner way to do it, which counts as +1000 at least.)  This is how we
should have built the method in the first place, rather than creating an
exported function.  Not sure how we missed that.  

I changed the POD docs so that the class method version is the preferred
form, and the exported function usage "is just backwards compatibility".
All current usage uses that form, but hey, we can updated these later
(if at all).

Pushed to 9.6 and HEAD.

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



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

Предыдущее
От: Thom Brown
Дата:
Сообщение: Re: [HACKERS] pg_dump does not handle indirectly-granted permissions properly
Следующее
От: Stephen Frost
Дата:
Сообщение: Re: [HACKERS] pg_dump does not handle indirectly-granted permissionsproperly