From: | Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Make PostgresNode easily subclassable |
Date: | 2017-07-25 23:08:20 |
Message-ID: | E1da8w8-00065b-9d@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Make PostgresNode easily subclassable
This module becomes much more useful if we allow it to be used as base
class for external projects. To achieve this, change the exported
get_new_node function into a class method instead, and use the standard
Perl idiom of accepting the class as first argument. This method works
as expected for subclasses. The standalone function is kept for
backwards compatibility, though it could be removed in pg11.
Author: Chap Flackman, based on an earlier patch from Craig Ringer
Discussion: https://postgr.es/m/CAMsr+YF8kO+4+K-_U4PtN==2FndJ+5Bn6A19XHhMiBykEwv0wA@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/54dacc746628799a3a09ebb78876b0a8d2742d23
Modified Files
--------------
src/test/perl/PostgresNode.pm | 20 ++++++++++++--------
src/test/perl/README | 2 +-
2 files changed, 13 insertions(+), 9 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2017-07-26 15:43:35 | pgsql: Remove obsolete comments about functional dependencies |
Previous Message | Alvaro Herrera | 2017-07-25 17:38:09 | pgsql: Fix race conditions in replication slot operations |