Skip to content

Draft -hackers reply: logging-destination wait events (testing + review)#50

Closed
NikolayS wants to merge 1 commit into
masterfrom
claude/postgres-logging-events-review-3H7Yj
Closed

Draft -hackers reply: logging-destination wait events (testing + review)#50
NikolayS wants to merge 1 commit into
masterfrom
claude/postgres-logging-events-review-3H7Yj

Conversation

@NikolayS

Copy link
Copy Markdown
Owner

Adds email-draft-logging-waitevents.txt — a draft pgsql-hackers reply to the "Add wait events for server logging destination writes" thread.

The draft covers what Seongjun is holding v5 for (Nikolay's Linux + Windows testing) plus a code review of v4:

Testing

  • Windows — dedicated Actions workflow (windows-waitevents.yml, MSVC/meson) confirmed IO/EventlogWrite appears in pg_stat_activity at runtime (closes the one open item from the v4 posting); StderrWrite/WriteConsoleW path exercised.
  • Linux — local build of the exact v4-0001 patch, 8×logspam(50000), ~20 ms sampling for 20 s:
    • logging_collector=onIO/SysloggerWrite 46.3%
    • logging_collector=offIO/StderrWrite 17.6%

Code review — both write() sites in write_pipe_chunks wrapped, write_console leaf, both syslog() sites; positions taken on the open items (keep names + add the write_syslogger_file clarifying comment, follow the single-slot convention rather than save/restore, leave EventlogWrite cross-platform).

This PR is documentation/review material only — no source changes. Not for merge; the draft is for posting to the mailing list.

🤖 Generated with Claude Code

https://claude.ai/code/session_01KLCS79xbABNmQ4pbLQ3gZ4


Generated by Claude Code

Draft response to the "Add wait events for server logging destination
writes" thread, with Linux + Windows runtime testing results and a code
review of v4.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KLCS79xbABNmQ4pbLQ3gZ4
@NikolayS NikolayS closed this Jun 18, 2026
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.

2 participants