Skip to content

SQL call sites: PostgreSQL CALL leaving the file reaches call_site_data (Part of #5736) - #6121

Merged
squid-protocol merged 1 commit into
mainfrom
churn/5736-pg-call-sites
Oct 23, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/5736-pg-call-sites

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5736. Checklist: done [c:0755f773]

PostgreSQL joins Db2 SQL (#6080) in the call_site_data channel: a CALL name leaving the file is a call site, resolved to the PostgreSQL file that creates the routine.

Class: SQL routine CALL sites missing from call_site_data. Members: db2_sql (#6080, done), postgresql (this PR; declares boundary_extraction: "sql", $$ bodies / DO blocks / qualified and quoted names covered), sqlite (no stored routines, nothing to call).

  • invocation_resolver: SQL index is now per dialect, so a PostgreSQL call never resolves to a Db2 file or a COBOL program.
  • galaxy_ir: SQL CALLs of every SQL dialect stay out of the program-call completeness gap (uses SQL_ROUTINE_LANGUAGES).
  • No burned estate has a SQL CALL (CardDemo: 6 .sql, 0 CALL), so golden masters show no drift (both legs: "No drift detected").

Gates: pr_gates --fast 7/7, --ratchets 9/9; sql/postgres/db2/galaxy_ir tests 301 passed.

Sibling gaps: Db2 CALL inside COBOL EXEC SQL is a separate checklist item (#4304); other SQL dialects when registered (no burned-estate program).

🤖 Generated with Claude Code

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 23, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 23, 2026 01:52
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol enabled auto-merge (squash) October 23, 2026 02:01
@squid-protocol
squid-protocol merged commit 9e64223 into main Oct 23, 2026
114 checks passed
@squid-protocol
squid-protocol deleted the churn/5736-pg-call-sites branch October 23, 2026 02:30
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant