• Magnus Hagander's avatar
    Fix pg_recvlogical for pre-10 versions · 8d2814f2
    Magnus Hagander authored
    In e170b8c8, protection against modified search_path was added. However,
    PostgreSQL versions prior to 10 does not accept SQL commands over a
    replication connection, so the protection would generate a syntax error.
    
    Since we cannot run SQL commands on it, we are also not vulnerable to
    the issue that e170b8c8 fixes, so we can just skip this command for
    older versions.
    
    Author: Michael Paquier <michael@paquier.xyz>
    8d2814f2
streamutil.c 14.1 KB