• Heikki Linnakangas's avatar
    Remove server and libpq support for old FE/BE protocol version 2. · 3174d69f
    Heikki Linnakangas authored
    Protocol version 3 was introduced in PostgreSQL 7.4. There shouldn't be
    many clients or servers left out there without version 3 support. But as
    a courtesy, I kept just enough of the old protocol support that we can
    still send the "unsupported protocol version" error in v2 format, so that
    old clients can display the message properly. Likewise, libpq still
    understands v2 ErrorResponse messages when establishing a connection.
    
    The impetus to do this now is that I'm working on a patch to COPY
    FROM, to always prefetch some data. We cannot do that safely with the
    old protocol, because it requires parsing the input one byte at a time
    to detect the end-of-copy marker.
    
    Reviewed-by: Tom Lane, Alvaro Herrera, John Naylor
    Discussion: https://www.postgresql.org/message-id/9ec25819-0a8a-d51a-17dc-4150bb3cca3b%40iki.fi
    3174d69f
auth.c 88.7 KB