Remove v2 frontend/backend protocol support. - Reject v2 protocol startup packet. If v2 frontend connects, raise a FATAL error. - Remove all v2 protocol branches except some codes in elog.c throwing v2 error messages. Also fix some existing bugs in it. - Remove the protocol major number argument from many functions. - Remove src/protocol/pool_proto2.c, which handled v2 protocol messages. - Remove MAJOR() macro. - Remove pool_get_major_version() and pool_get_minor_version() family functions. Also Remove member "major" and "minor" in pool_session_context.h, that were used by these functions. - Remove pool_read_string() in pool_stream.c, which was only used by v2 protocol path. Also remove "sbuf" and "sbufsz" in POOL_CONNECTION which was used by pool_read_string(). Author: Tatsuo Ishii Reviewed-by: Nadav Shatz Discussion: https://www.postgresql.org/message-id/20260625.151428.1666276852188903568.ishii%40postgresql.org Backpatch-through: master only