• Amit Kapila's avatar
    Revert commits 290acac9 and 8a7e9e9d. · 98a9b37b
    Amit Kapila authored
    This commit revert the commits to add a test case that tests the 'force'
    option when there is an active backend connected to the database being
    dropped.
    
    This feature internally sends SIGTERM to all the backends connected to the
    database being dropped and then the same is reported to the client.  We
    found that on Windows, the client end of the socket is not able to read
    the data once we close the socket in the server which leads to loss of
    error message which is not what we expect.  We also observed  similar
    behavior in other cases like pg_terminate_backend(),
    pg_ctl kill TERM <pid>.  There are probably a few others like that.  The
    fix for this requires further study.
    
    Discussion: https://postgr.es/m/E1iaD8h-0004us-K9@gemulon.postgresql.org
    98a9b37b
050_dropdb.pl 715 Bytes