8000 Fix application_name truncation notice messages. by dimitri · Pull Request #578 · dimitri/pgcopydb · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix application_name truncation notice messages. #578

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 15, 2023
Merged

Conversation

dimitri
Copy link
Owner
@dimitri dimitri commented Dec 15, 2023

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: ".

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: ".
8BBE
@dimitri dimitri self-assigned this Dec 15, 2023
@dimitri dimitri added bug Something isn't working enhancement New feature or request labels Dec 15, 2023
@dimitri dimitri added this to the v0.15 milestone Dec 15, 2023
@dimitri dimitri merged commit 13b7290 into main Dec 15, 2023
@dimitri dimitri deleted the fix/appname branch December 15, 2023 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0