Fix application_name truncation notice messages. (#578)
Postgres application_name is limited to NAMEDATALEN, sending more bytes than that gives us a NOTICE and we can easily avoid it. In passing, avoid redundancies in the application_name when the ps_buffer already starts with "pgcopydb: ".
parent
3f32b1a0
Please register or sign in to comment