Fixed crash related to monitor user authentication.
Fixed PgSQL Query Rules Rewrite, Ok Message and Error Message.
Override generate_pkt_OK, generate_pkt_EOF, and generate_pkt_ERR to convert the corresponding messages to PostgreSQL protocol format and prevent crashes.