Skip to content
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

Fix log_min_messages for "LOG" messages #18

Closed
wants to merge 2 commits into from

Conversation

gsstark
Copy link

@gsstark gsstark commented Mar 2, 2018

Postgres's interpretation of LOG level messages is ... curious. They're treated as between DEBUG1 and INFO for the client but as equal to ERROR for the server log. Copy the function from elog.c to implement this.

Postgres's handling of LOG level messages is ... curious. They're
treated as between DEBUG1 and INFO for the client however for the
server log they're treated as equal to ERROR.

Copy the static is_log_level_output function from elog.c to implement
this.
LOG_SERVER_ONLY didn't exist before 9.6 but we can use COMMERROR which
is now just an alias for it and always existed before.
@michaelpq
Copy link
Owner

Thanks Greg for the patch. I have merged both commits and pushed them as 935ca4f. I have also changed one comment to be more consistent.

@michaelpq michaelpq closed this Mar 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants