• Michael Paquier's avatar
    Switch TAP tests of pg_rewind to use non-superuser role, take two · d9f543e9
    Michael Paquier authored
    Up to now the tests of pg_rewind have been using a superuser for all its
    tests (which is the default of many tests actually, and something that
    ought to be reviewed) when involving an online source server, still it
    is possible to use a non-superuser role to do that as long as this role
    is granted permissions to execute all the source-side functions used for
    the rewind.  This is possible since v11, and was already documented as
    of bfc80683.
    
    PostgresNode::init is extended so as callers of this routine can add
    extra options to configure the authentication of a new node, which gets
    used by this commit, and allows the tests to work properly on Windows
    where SSPI is used.
    
    This will allow to catch up easily any change in pg_rewind if the tool
    begins to use more backend-side functions, so as the properties
    introduced by v11 are kept.
    
    Per suggestion from Peter Eisentraut.
    
    Author: Michael Paquier
    Reviewed-by: Magnus Hagander
    Discussion: https://postgr.es/m/20190411041336.GM2728@paquier.xyz
    d9f543e9
RewindTest.pm 8.35 KB