Skip to content

Register PL/Ruby callbacks with their declared Ruby signatures - #12

Open
Vonng wants to merge 1 commit into
commandprompt:masterfrom
pgsty:codex/ruby-callback-signatures
Open

Vonng wants to merge 1 commit into
commandprompt:masterfrom
pgsty:codex/ruby-callback-signatures

Conversation

@Vonng

@Vonng Vonng commented Nov 27, 2026

Copy link
Copy Markdown

Pass the declared callbacks directly to Ruby’s method registration macros so their arity-specific signatures are visible to C23 compilers.

I built on PostgreSQL 18.7 with GCC 11 and with GCC 15.2 in GNU C23 mode with incompatible-pointer diagnostics treated as errors. All 44 regressions passed on both builds.

Closes #11.

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.

Ruby callback casts hide the SPI method arity in C23 builds

1 participant