Skip to content

Add Function#signature for PostgreSQL function identity#207

Merged
teoljungberg merged 1 commit into
masterfrom
tl-function-signature
Mar 8, 2026
Merged

Add Function#signature for PostgreSQL function identity#207
teoljungberg merged 1 commit into
masterfrom
tl-function-signature

Conversation

@teoljungberg

@teoljungberg teoljungberg commented Mar 8, 2026

Copy link
Copy Markdown
Owner
  • Fetch pg_get_function_identity_arguments in the schema dump
    query so each Fx::Function knows its argument types
  • Add Function#signature returning the full PostgreSQL identity
    (e.g. add(integer, integer) or now_utc())
  • Use signature for == and <=> so overloaded functions with the
    same name but different arguments are correctly distinguished
  • arguments is kept private; signature is the public API

Foundational change that both #203 and the dependency sorting
PR can build on.

Fetch argument types via pg_get_function_identity_arguments in the
schema dump query and expose a signature method that returns the full
PostgreSQL identity (e.g. "add(integer, integer)"). Use signature for
equality and ordering so overloaded functions are correctly
distinguished.
@teoljungberg teoljungberg merged commit b4e2e3e into master Mar 8, 2026
9 checks passed
@teoljungberg teoljungberg deleted the tl-function-signature branch March 8, 2026 08:29
teoljungberg added a commit that referenced this pull request Mar 8, 2026
Add entries for Function#signature (#207), scheduled EOL
check (#205), and GitHub release creation.
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.

1 participant