• Fujii Masao's avatar
    Fix bug in handling of connections that pg_receivexlog creates. · 504c7175
    Fujii Masao authored
    Previously pg_receivexlog created new connection for WAL streaming
    even though another connection which had been established to create
    or delete the replication slot was being left. This caused the unused
    connection to be left uselessly until pg_receivexlog exited.
    This bug was introduced by the commit d9f38c7a.
    
    This patch changes pg_receivexlog so that the connection for
    the replication slot is reused for WAL streaming.
    
    Andres Freund, slightly modified by me, reviewed by Michael Paquier
    504c7175
pg_receivexlog.c 15.3 KB