Skip to content

also format *.c files, address warnings - #128

Merged
serprex merged 1 commit into
mainfrom
format-c
Sep 11, 2026
Merged

serprex merged 1 commit into
mainfrom
format-c

Conversation

@serprex

@serprex serprex commented Sep 11, 2026

Copy link
Copy Markdown
Member

No description provided.

Comment thread src/worker/bgworker.c
void PschBgworkerMain(Datum main_arg pg_attribute_unused()) {
#ifdef __GLIBC__
// Set before any gRPC/Arrow threads are created; cap glibc malloc arenas to reduce virtual memory usage.
// Set before any gRPC/Arrow threads are created; cap glibc malloc arenas to reduce virtual memory

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how deeply unlike you

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It hurt me, bit tempted to rewrite the comment, but embracing this as a more mechanical PR

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Address the global unsafe-buffer diagnostic suppression and the _PG_init naming exception.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR formats C sources and expands formatting/lint coverage while aligning naming conventions.

Changes:

  • Reformats worker, queue, hook, and exporter code.
  • Renames configuration identifiers.
  • Updates mise, CI, and clang-tidy configuration.
File summaries
File Description
src/worker/bgworker.c Formatting updates
src/queue/shmem.c Formatting updates
src/queue/query_intern.c Formatting updates
src/queue/psch_dsa.c Formatting updates
src/hooks/query_normalize_state.c Formatting and pointer-style updates
src/hooks/hooks.c Formatting updates
src/export/clickhouse_c_impl.c Include ordering update
src/config/guc.c Naming and formatting updates
mise.toml Adds C files to format/lint tasks
.github/workflows/ci.yml Adds C files to formatting checks
.clang-tidy Updates naming and diagnostic configuration
Review details
  • Files reviewed: 11/11 changed files
  • Comments generated: 2
  • Review effort level: Lite

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread .clang-tidy
Checks: >
-*,
clang-analyzer-*,
-clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,
Comment thread .clang-tidy
Comment on lines +31 to +32
- key: readability-identifier-naming.FunctionIgnoredRegexp
value: 'pg_stat_ch_.*'
@serprex
serprex merged commit 7bec859 into main Sep 11, 2026
12 of 13 checks passed
@serprex
serprex deleted the format-c branch September 11, 2026 18:17
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.

3 participants