pg.ddx.io: the PostgreSQL community's memory
v2026.10.22Every PostgreSQL mailing list since 1991, linked to the commits, code, commitfest and docs.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
retrieve_context Retrieve Context
START HERE for a PostgreSQL question. Hybrid search of every list (inbox narrows it) returned as cited passages within token_budget: one per thread, the author's own words (~1200 chars) with url, inbox, message_id, from, date. found=false with a reason when the archive does not discuss it. Write the answer yourself; cite each passage url. author/since/until: one person in a date window. Takes search operators; complete=false when out of budget_ms. A commit SHA returns the mail referring to it. For "why was X added/changed/reverted" it may add commit_context: the commit the question resolved to…
| Parameter | Type | Description |
|---|---|---|
query * | string | |
author | string | Name, address or hash:<8 hex> |
budget_ms | number | ms, 100-15000, default 4500 |
inbox | string | all (default), a list, or several comma-separated |
since | string | On or after: YYYY[-MM[-DD]], ISO, or 2w/6m/1y ago |
token_budget | number | Default 4000, max 32000 |
until | string | Before (exclusive), same forms as since |
animal_history Animal History
One animal's runs, newest first; branch and since filter.
| Parameter | Type | Description |
|---|---|---|
name * | string | Animal name |
branch | string | One branch, e.g. master |
limit | number | 1-1000, default 100 |
since | string | Runs started at or after (RFC 3339) |
animal_owner_contributions Animal Owner Contributions
Animals one owner runs (owner_name or owner_email; at least one): the branches each tracks, last status, first_seen_at and days since.
| Parameter | Type | Description |
|---|---|---|
owner_email | string | Exact |
owner_name | string | Exact |
blame_symbol Blame Symbol
The commits that changed a symbol's lines in its file.
| Parameter | Type | Description |
|---|---|---|
qualified_name * | string | From search_symbols |
repository | string |
browse_by_date Browse by Date
Threads active in a date range [since, until) on one list.
| Parameter | Type | Description |
|---|---|---|
since * | string | Start date (YYYY-MM-DD or YYYYMMDD) |
until * | string | End date, exclusive (same forms) |
inbox | string | Default pgsql-hackers |
limit | number | Threads, 1-200, default 50 |
build_status_freshness Build Status Freshness
cfbot data age: last_build_at (newest build finish), seen_at (newest result our sync saw), build_count. Old seen_at: our scraper stalled; old last_build_at, recent seen_at: cfbot idle.
buildfarm_overview Buildfarm Overview
Buildfarm health: animal count, recent runs, failing animals, top owners, OS / branch breakdown, freshness.
check_upstream_status Check Upstream Status
Was a pull request merged upstream: the patch series' latest head commit and any merge information.
| Parameter | Type | Description |
|---|---|---|
pr_url * | string | Forge pull request URL |
code_index_status Code Index Status
Code index statistics: files, symbols by kind and language, edges, communities.
| Parameter | Type | Description |
|---|---|---|
repository | string |
codebase_map Codebase Map
File and symbol counts per directory.
| Parameter | Type | Description |
|---|---|---|
depth | number | Directory depth (default 2) |
repository | string |
commit_buildfarm_status Commit Buildfarm Status
Buildfarm results for one postgres commit: per animal branch, status, failing stage, log url; rollup counts.
| Parameter | Type | Description |
|---|---|---|
commit * | string |
commit_history Commit History
Everything linked to one commit: subject, author, date, sha, message, the Discussion: thread (participants as people and organizations), commitfest entry, Discord mentions; for postgres also first_releases (per branch: sha, release or null, first_version, shipped), reverted_by and reverts. No diff (git_diff, git_show_file).
| Parameter | Type | Description |
|---|---|---|
commit * | string |
commitfest_stats Commitfest Stats
All commitfests: entries by status, top authors, and totals of people, commitfests and entries.
contribution_summary Contribution Summary
Per release: people, distinct commits, count of commits per role (canonical authoritative repos only), revert commits.
| Parameter | Type | Description |
|---|---|---|
release | string | e.g. PG17, 17, pre-9.6; empty = all |
detect_changes Detect Changes
The symbols that changed between two commits (file content hashes).
| Parameter | Type | Description |
|---|---|---|
from_commit * | string | Base commit. Any commit form |
repository | string | |
to_commit | string | Target commit (default HEAD) |
discussion_links Discussion Links
A commit's Discussion / Closes / Fixes / Backpatch-through trailers: raw text and URL. For the mail itself: git_search mail_refs.
| Parameter | Type | Description |
|---|---|---|
commit * | string |
embedding_status Embedding Status
Embedding coverage of a list: messages embedded, model, last run.
| Parameter | Type | Description |
|---|---|---|
inbox | string | Default pgsql-hackers |
entry_branches Entry Branches
Repository branches tracked for a commitfest entry: repo, branch_name, is_authoritative.
| Parameter | Type | Description |
|---|---|---|
cf_id * | number | Entry id |
entry_history Entry History
An entry's status across commitfests, matched by shared thread Message-ID (precise), else by title prefix (weak).
| Parameter | Type | Description |
|---|---|---|
cf_id * | number | Entry id |
find_breaks Find Breaks
Animals that failed on a branch between two commits, by run time (the buildfarm has no commit order).
| Parameter | Type | Description |
|---|---|---|
branch * | string | Branch, e.g. master |
from_commit * | string | Window start |
to_commit * | string | Window end |
find_contributions Find Contributions
One person's contribution rows: commit SHAs and animals, each with role and release. By email, else name.
| Parameter | Type | Description |
|---|---|---|
email | string | Canonical email |
limit | number | 1-500, default 50 |
name | string | Name substring (when no email) |
release | string | e.g. PG17, 17, REL_17_STABLE, pre-9.6 |
role | string | One role |
find_dead_code Find Dead Code
Functions and methods nothing calls (no incoming call edges).
| Parameter | Type | Description |
|---|---|---|
limit | number | 1-200, default 50 |
repository | string |
find_entries_for_author Find Entries for Author
Commitfest entries a person authored: email (exact) or name (substring, case-sensitive).
| Parameter | Type | Description |
|---|---|---|
email | string | Exact email |
limit | number | 1-500, default 100 |
name | string | Name substring (case-sensitive) |
find_entries_for_thread Find Entries for Thread
Commitfest entries whose page links any message of the thread.
| Parameter | Type | Description |
|---|---|---|
message_id * | string |
find_entries_with_failures_on Find Entries With Failures on
An animal's recent failed runs, and commitfest entries failing in cfbot on branches it tracks (correlated by branch and time, not joined).
| Parameter | Type | Description |
|---|---|---|
name * | string | Animal, e.g. fairywren |
limit | number | 1-200, default 50 |
find_failing_patches Find Failing Patches
Entries whose latest cfbot build fails on a platform: cf_id, title, entry_status, needs_rebase (newest version does not apply), commitfest_number.
| Parameter | Type | Description |
|---|---|---|
limit | number | 1-500, default 100 |
platform | string | linux, macos, windows, freebsd, netbsd, openbsd |
status | string | e.g. needs-review (default every active) |
find_failing_runs Find Failing Runs
The newest failing buildfarm runs fleet-wide: what is broken now.
| Parameter | Type | Description |
|---|---|---|
branch | string | One branch, e.g. master |
limit | number | 1-1000, default 100 |
since | string | Runs started at or after (RFC 3339; default 24h ago) |
find_passing_long_pending Find Passing Long Pending
Entries green on every platform that apply to master, not updated for min_days: why isn't it committed?
| Parameter | Type | Description |
|---|---|---|
limit | number | 1-500, default 100 |
min_days | number | Days since last update (default 14) |
find_patches_by_platform_status Find Patches by Platform Status
Entries passing on one platform and failing on another (e.g. linux vs macos: a portability bug).
| Parameter | Type | Description |
|---|---|---|
failing_on | string | Platform it fails on, e.g. macos |
limit | number | 1-500, default 100 |
passing_on | string | Platform it passes on, e.g. linux |
find_pattern Find Pattern
Regex search of code symbol bodies (trigram-indexed).
| Parameter | Type | Description |
|---|---|---|
query * | string | Regular expression |
limit | number | 1-100, default 50 |
repository | string |
find_rebase_needed_patches Find Rebase Needed Patches
Entries cfbot says no longer apply to master: they need a rebase.
| Parameter | Type | Description |
|---|---|---|
limit | number | 1-500, default 100 |
find_similar_messages Find Similar Messages
Messages near one message by embedding: related or duplicate threads.
| Parameter | Type | Description |
|---|---|---|
message_id * | string | |
inbox | string | |
limit | number | 1-50, default 10 |
get_animal Get Animal
One animal: hardware, OS, compiler, owner, branches, last status, its last 20 runs.
| Parameter | Type | Description |
|---|---|---|
name * | string | Animal, e.g. fairywren |
get_attachment Get Attachment
One attachment, whole, by 1-based index or filename substring. Text as text (a .patch applies with git apply), binary as base64; size = decoded bytes; url. Large text: start_line/end_line, 2000 lines a call (total_lines, cut).
| Parameter | Type | Description |
|---|---|---|
message_id * | string | |
end_line | number | Text: last line, at most start_line + 1999 |
filename | string | Filename substring |
inbox | string | |
index | number | 1-based index (from get_message attachments) |
start_line | number | Text: first line (1-based) |
get_author_messages Get Author Messages
One list's messages from a sender (name or address, as search's f:), newest first; since/until bound them.
| Parameter | Type | Description |
|---|---|---|
author * | string | Name or address |
inbox | string | Default pgsql-hackers |
limit | number | 1-200, default 50 |
offset | number | |
since | string | On or after: YYYY[-MM[-DD]] or 2w/6m/1y ago |
until | string | Before (exclusive), same forms |
get_callees Get Callees
What a symbol calls or references (forward call graph).
| Parameter | Type | Description |
|---|---|---|
qualified_name * | string | From search_symbols |
limit | number | 1-100, default 50 |
repository | string |
get_callers Get Callers
Who calls or references qualified_name, with file and lines. HEAD only; macros and function pointers are not followed.
| Parameter | Type | Description |
|---|---|---|
qualified_name * | string | From search_symbols |
limit | number | 1-100, default 50 |
repository | string |
get_commitfest Get Commitfest
One commitfest: entries by status and its top authors.
| Parameter | Type | Description |
|---|---|---|
commitfest_number * | number | Commitfest number, e.g. 59 |
get_communities Get Communities
Louvain clusters of the call graph: related symbols by functional area.
| Parameter | Type | Description |
|---|---|---|
limit | number | 1-100, default 20 |
repository | string |
get_community Get Community
One community and its symbols.
| Parameter | Type | Description |
|---|---|---|
community_id * | number | Community id (from get_communities) |
repository | string |
get_contributor Get Contributor
A contributor by email (exact) or name (substring): canonical name, page hash, per-release counts by role, the 5 latest credited commits, animals owned. Cite https://pg.ddx.io/community/<hash>.
| Parameter | Type | Description |
|---|---|---|
email | string | Exact canonical email |
name | string | Name substring |
get_contributor_history Get Contributor History
Every list message from a sender (address or name).
| Parameter | Type | Description |
|---|---|---|
author * | string | Address or display name |
limit | number | 1-100, default 50 |
get_dependents Get Dependents
Transitive dependents: the blast radius if this symbol changes.
| Parameter | Type | Description |
|---|---|---|
qualified_name * | string | From search_symbols |
limit | number | 1-200, default 50 |
max_depth | number | BFS depth, 1-5, default 3 |
repository | string |
get_doc_page Get Doc Page
One docs page as text: url, path, body, fetched_at. Find the path with search_docs; cite the url.
| Parameter | Type | Description |
|---|---|---|
path * | string | Page, e.g. brin.html |
version | string | e.g. 17, current (default the latest) |
get_entry Get Entry
One commitfest entry: title, status, commitfest, authors, reviewers, committer, mail threads, branches.
| Parameter | Type | Description |
|---|---|---|
cf_id * | number | Entry id |
get_execution_flows Get Execution Flows
Execution paths through the call graph from entry points.
| Parameter | Type | Description |
|---|---|---|
limit | number | 1-50, default 20 |
max_depth | number | BFS depth, 1-10, default 8 |
repository | string |
get_impact Get Impact
Impact of changing a symbol: risk level, blast radius, communities and flows affected.
| Parameter | Type | Description |
|---|---|---|
qualified_name * | string | From search_symbols |
repository | string |
get_inbox_info Get Inbox Info
A list's name, addresses, message_count (a cross-post counts on each list) and last activity.
| Parameter | Type | Description |
|---|---|---|
inbox | string | Default pgsql-hackers |
get_inbox_stats Get Inbox Stats
A list's message counts per period, top authors, trends; total_messages; oldest_date/newest_date skip unparsable or impossible dates.
| Parameter | Type | Description |
|---|---|---|
inbox | string | Default pgsql-hackers |
period | string | day, week, month (default) or year |
top_authors | number | 1-50, default 10 |
get_inbox_summary Get Inbox Summary
One list: total messages, top 10 posters, threads, date range, average messages per day over its life.
| Parameter | Type | Description |
|---|---|---|
inbox * | string | List name |
get_message Get Message
One message: headers, in_reply_to/references, body (own words: quotes, forwards, inline patches, signature removed; full_text=true for all), attachments [{index, filename, content_type, size}], has_patch. quotes: own_words/in_message verdicts per quote (include_body=false: verdicts only). Raw: get_attachment, get_raw_message.
| Parameter | Type | Description |
|---|---|---|
message_id * | string | |
full_text | boolean | Default false: own words |
inbox | string | |
include_body | boolean | Default true |
include_llm | boolean | Default false: each message's llm_estimate (see llm_estimate) |
quotes | array | Up to 20 quotes to check (12+ chars) |
get_message_headers Get Message Headers
A message's headers as key/value pairs, all or one.
| Parameter | Type | Description |
|---|---|---|
message_id * | string | |
header | string | One header, e.g. X-Mailer (default all) |
inbox | string |
get_message_references Get Message References
A message's references: References/In-Reply-To and Message-IDs in its body, each looked up in the archive.
| Parameter | Type | Description |
|---|---|---|
message_id * | string | |
inbox | string |
get_new_messages Get New Messages
Messages after an article-number cursor, to poll without rescanning: after=0 first, then the returned last_article_num.
| Parameter | Type | Description |
|---|---|---|
after * | number | 0 first, then last_article_num |
inbox | string | Default pgsql-hackers |
limit | number | 1-1000, default 200 |
get_patch_branches Get Patch Branches
Git branches made from a pull request's patch series.
| Parameter | Type | Description |
|---|---|---|
pr_url * | string | Forge pull request URL |
get_patch_build_history Get Patch Build History
One entry's cfbot build matrix: per job status, platform, config, log URL, at, started_at, seen_at; rollup: last_build_at, seen_at, passing/failing_platforms, applies_cleanly, needs_rebase (the newest patch does not apply; builds are of the last that did).
| Parameter | Type | Description |
|---|---|---|
cf_id * | number | Entry id |
get_patch_series Get Patch Series
Every iteration of a pull request posted to the lists.
| Parameter | Type | Description |
|---|---|---|
pr_url * | string | Forge pull request URL |
get_raw_message Get Raw Message
A message's raw RFC 822 bytes.
| Parameter | Type | Description |
|---|---|---|
message_id * | string | |
inbox | string |
get_repo_sync_stats Get Repo Sync Stats
A repository's commit cadence (median interval, suggested poll) and fetch log.
| Parameter | Type | Description |
|---|---|---|
repository | string |
get_repository_summary Get Repository Summary
One repository: commits, top 10 contributors, branches, languages (indexed symbols), most-touched paths (sampled).
| Parameter | Type | Description |
|---|---|---|
repository * | string | Repository name |
get_signature Get Signature
A symbol's signature and doc comment.
| Parameter | Type | Description |
|---|---|---|
qualified_name * | string | From search_symbols |
repository | string |
get_source_info Get Source Info
One list_sources source: kind, item_count, last_update, next_sync, freshness_status, description; an inbox also has newest_item and ingester, a postgresql.org list poll (p_new, due, next_poll).
| Parameter | Type | Description |
|---|---|---|
name * | string | A list_sources name |
kind | string | inbox, repository, docs, wiki, discord, legacy or security (for a shared name) |
get_symbol Get Symbol
A symbol by qualified name: source, signature, docs, file location.
| Parameter | Type | Description |
|---|---|---|
qualified_name * | string | e.g. pkg::func_name |
repository | string |
get_tests_for Get Tests for
Test symbols that reference a symbol.
| Parameter | Type | Description |
|---|---|---|
qualified_name * | string | From search_symbols |
repository | string |
get_thread Get Thread
The reply thread of a message (what In-Reply-To/References join to it), oldest first; root_message_id is its first message. grouping=subject: the whole subject thread, as the /m/ page shows it (may hold several reply threads). Each message: from, to, cc, date, message_id, body (own words; full_text=true for all), attachments, has_patch. Pages of 20 (limit max 500; next_offset, has_more); bodies cut at max_body_chars. include_body=false: outline.
| Parameter | Type | Description |
|---|---|---|
message_id * | string | |
full_text | boolean | Default false: own words |
grouping | string | reply (default) or subject |
inbox | string | |
include_body | boolean | Default true |
include_llm | boolean | Default false: each message's llm_estimate (see llm_estimate) |
limit | number | Messages per page, 1-500, default 20 |
max_body_chars | number | Default 4000; 0 = no cap |
offset | number | next_offset from the previous page |
get_thread_references Get Thread References
A thread's cross-reference graph: Message-IDs cited in its bodies and the threads they point to.
| Parameter | Type | Description |
|---|---|---|
message_id * | string | |
inbox | string |
get_wiki_history Get Wiki History
A wiki page's revisions.
| Parameter | Type | Description |
|---|---|---|
title * | string | |
limit | number | 1-100, default 20 |
get_wiki_page Get Wiki Page
One wiki.postgresql.org page by title ("Don't Do This"): latest revision, author, date. Cite https://wiki.postgresql.org/wiki/<title>.
| Parameter | Type | Description |
|---|---|---|
title * | string |
git_analyze_activity Git Analyze Activity
Commits per period: development pace.
| Parameter | Type | Description |
|---|---|---|
period | string | week, month (default), quarter or year |
repository | string |
git_analyze_authors Git Analyze Authors
Per author: commits, first and last date; by commit count.
| Parameter | Type | Description |
|---|---|---|
limit | number | 1-100, default 25 |
repository | string |
git_analyze_bus_factor Git Analyze Bus Factor
Files with the fewest distinct authors (knowledge silos).
| Parameter | Type | Description |
|---|---|---|
limit | number | 1-100, default 25 |
repository | string |
git_analyze_churn Git Analyze Churn
Most often changed files.
| Parameter | Type | Description |
|---|---|---|
limit | number | 1-100, default 25 |
repository | string |
git_analyze_coupling Git Analyze Coupling
File pairs often changed together (hidden dependencies).
| Parameter | Type | Description |
|---|---|---|
limit | number | 1-100, default 25 |
min_count | number | Minimum co-changes (default 2) |
repository | string |
git_analyze_hotspots Git Analyze Hotspots
Churn per directory: the most changed areas.
| Parameter | Type | Description |
|---|---|---|
depth | number | Directory depth (default 1) |
limit | number | 1-100, default 25 |
repository | string |
git_blame Git Blame
A file's commit history (git log <rev> -- <path>), newest first: sha, commit_id, author, date, summary, status. Not per-line blame (blame). Renames not followed.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
commit | string | Default HEAD |
limit | number | 1-1000, default 100 |
repository | string |
git_diff Git Diff
Range mode (head_branch, optional base_branch: commits in head not base, filtered by author/message/path) or diff mode (from_commit, to_commit: unified diff).
| Parameter | Type | Description |
|---|---|---|
author | string | Range mode: author substring |
base_branch | string | Range mode: base (default branch) |
from_commit | string | Diff mode: from. Any commit form |
head_branch | string | Selects range mode |
limit | number | Range mode: 1-1000, default 100 |
message | string | Range mode: message substring |
path | string | Only this file path |
repository | string | |
to_commit | string | Diff mode: to (default HEAD) |
git_log Git Log
Commit history like git log, newest first; path, author (substring), since/until, branch (branch, tag or major) filter. Each: sha, commit_id, message, author, dates; has_more. To scan or count, format=oneline (sha, date, author, subject); for a count, search_commits output=count.
| Parameter | Type | Description |
|---|---|---|
author | string | Name or email substring |
branch | string | Default the default branch |
format | string | full (default: whole message) or oneline |
limit | number | 1-200, default 50 |
offset | number | |
path | string | Commits touching this path |
repository | string | |
since | string | After (YYYY-MM-DD or RFC 3339) |
until | string | Before (YYYY-MM-DD or RFC 3339) |
git_search Git Search
Commit messages (or paths: search_in=paths) by keywords, best match first; every word, case-insensitive. Each commit: sha, commit_id, branch, branches (its branch, then its back-patches': a back-patched fix appears once per branch, so pick by branch), first_release (first final release on its branch containing it, or null), message, author, date, people, mail_refs (up to 5, with how_it_refers). A SHA or 7+ hex prefix returns that commit.
| Parameter | Type | Description |
|---|---|---|
query * | string | |
limit | number | 1-200, default 50 |
repository | string | |
search_in | string | messages (default) or paths |
git_show_file Git Show File
A file at any commit (git show <rev>:<path>); an unknown rev or path is an error. Max 2000 lines a call (start_line/end_line; total_lines, cut). Returns sha and ref.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
commit | string | Any commit form (default HEAD) |
end_line | number | At most start_line + 1999 |
numbered | boolean | Default true |
repository | string | |
start_line | number | First line (1-based, default 1) |
history-of History of
For CI: given a diff, path, symbol, subject or feature, the most relevant default-branch commits, their mail discussion and the people involved.
| Parameter | Type | Description |
|---|---|---|
query * | string | |
inbox | string | List to search (default pgsql-hackers) |
limit | number | Per section, 1-25, default 5 |
repository | string | Its default branch is traced (default postgres) |
hybrid_search Hybrid Search
Mailing-list search, BM25 over own words and semantic, blended per thread; every list unless inbox narrows it. Up to limit threads, best first, each its best message: inbox, message_id, subject, from, date, thread_id, fused_score (0-1), similarity, excerpt. author/since/until: one sender in a date window. Takes search operators (operators, warnings, skipped report them); complete=false when out of budget_ms. A commit SHA returns the mail referring to it (how_it_refers).
| Parameter | Type | Description |
|---|---|---|
query * | string | Words or a question; search's operators |
author | string | Name, address or hash:<8 hex> |
budget_ms | number | ms, 100-15000, default 4500 |
inbox | string | all (default), a list, or several comma-separated |
keyword_weight | number | 0.0-1.0, default 0.65; raise for exact identifiers |
limit | number | 1-50, default 20 |
since | string | On or after: YYYY[-MM[-DD]], ISO, or 2w/6m/1y ago |
until | string | Before (exclusive), same forms as since |
hybrid_search_code Hybrid Search Code
Code search by keyword and meaning, fused (RRF). Needs embeddings.
| Parameter | Type | Description |
|---|---|---|
query * | string | Keywords or natural language |
keyword_weight | number | 0.0-1.0, default 0.5 |
limit | number | 1-100, default 20 |
repository | string |
list_animals List Animals
Buildfarm animals by OS, branch, last status or owner; failing first, then by name.
| Parameter | Type | Description |
|---|---|---|
branch | string | Tracking this branch, e.g. REL_18_STABLE |
limit | number | 1-500, default 100 |
os | string | Exact OS |
owner | string | Exact owner name or email |
status | string | passed, failed, flapping or unknown |
list_branches List Branches
A repository's branches: head commit, default.
| Parameter | Type | Description |
|---|---|---|
repository | string |
list_commitfests List Commitfests
Commitfests: status (open / in-progress / closed) and entry counts by status.
| Parameter | Type | Description |
|---|---|---|
status | string | open, in-progress or closed |
list_contributors List Contributors
Contributors from git trailers, author/committer headers and animal owners, most contributions first.
| Parameter | Type | Description |
|---|---|---|
limit | number | 1-500, default 100 |
offset | number | |
release | string | e.g. PG17, 17, REL_17_STABLE, pre-9.6 |
role | string | authored, reviewed, committed, ... |
source | string | git, buildfarm, email, wiki or commitfest |
list_discord_channels List Discord Channels
Monitored Discord channels and their message counts.
list_doc_versions List Doc Versions
Documentation versions and page counts.
list_entries List Entries
Commitfest entries (patch series) by status, commitfest or topic; paged.
| Parameter | Type | Description |
|---|---|---|
commitfest_number | number | e.g. 59 |
limit | number | 1-500, default 100 |
offset | number | |
status | string | e.g. needs-review, committed |
topic | string | Topic substring |
list_inboxes List Inboxes
Every list: name, message_count, latest_message_date, latest_import_date, listid, description.
| Parameter | Type | Description |
|---|---|---|
limit | number | |
min_messages | number | At least this many messages |
offset | number |
list_projects List Projects
Projects linking a forge repository to a list.
list_recent List Recent
A list's newest messages.
| Parameter | Type | Description |
|---|---|---|
inbox | string | Default pgsql-hackers |
limit | number | 1-200, default 25 |
list_repositories List Repositories
Every repository: name, branch, commit_count, file_count, symbol_count, latest_commit, last_fetched_at, import_state.
| Parameter | Type | Description |
|---|---|---|
branch | string | Default branch equals this |
limit | number | |
min_commits | number | At least this many commits |
offset | number |
list_sources List Sources
Every source (inbox, repository, docs, wiki, discord, security): item count, last update (an inbox: its last complete sync; newest_item: its newest message), freshness (fresh, stale, unknown, archived). The names other tools take.
| Parameter | Type | Description |
|---|---|---|
kind | string | inbox, repository, docs, wiki, discord or security |
limit | number | |
min_items | number | At least this many items |
offset | number |
list_threads List Threads
A list's recent threads: message counts, date ranges, latest message.
| Parameter | Type | Description |
|---|---|---|
before | number | Unix time (paging) |
inbox | string | Default pgsql-hackers |
limit | number | 1-100, default 20 |
llm_estimate Llm Estimate
P(LLM wrote it) for one message: its text (element message) and, per patch it carries, the commit message and the code. Each element: p_llm, model_version, model_quality, heldout_auc, computed_at; null p_llm with a reason when not scored (never 0) or when the model's heldout_auc is below 0.6. At most 3 patches per message; mail received before 2022-11-30 is 0 by rule, with one commit_message and one code element however many patches it carries. Weak estimates, not verdicts: read the caveat.
| Parameter | Type | Description |
|---|---|---|
message_id * | string | |
inbox | string |
recent_commitfest_activity Recent Commitfest Activity
Entries updated since a cutoff, with a status histogram.
| Parameter | Type | Description |
|---|---|---|
limit | number | 1-500, default 100 |
since | string | RFC 3339 cutoff (default 7 days ago) |
search_commitfest Search Commitfest
Full-text search of commitfest entries (title, then people), the current commitfest unless commitfests; "phrase", -term, or. Each: cf_id, title, status, commitfest(s), people, last update, patch url, thread link, outlook (P(commit) or null). Operators: intitle:, from:, after:/before:, /regex/, commitfest:, release:. A commit SHA returns its threads' entries.
| Parameter | Type | Description |
|---|---|---|
query * | string | e.g. NUMA, "Tom Lane"; commitfest:this|next, release:this|next|PG20 |
commitfests | string | current (default), all, or numbers "62,61" |
limit | integer | 1-50, default 20 |
sort | string | Default relevance; likely/unlikely sort by P(commit) |
release_contributors Release Contributors
Top contributors per role (authored, reviewed, tested, reported, committed) for one release, by distinct commits.
| Parameter | Type | Description |
|---|---|---|
release * | string | e.g. PG17, 17, REL_17_STABLE, pre-9.6 |
limit | number | Per role, 1-100, default 20 |
repository_stats Repository Stats
A repository's commits, files, branch and import state.
| Parameter | Type | Description |
|---|---|---|
repository | string |
search Search
Keyword search of mail (BM25 over subject, sender, own words), every list unless inbox narrows it. Messages best first (collapse_threads: one per thread): inbox, message_id, subject, from, date, thread_id, excerpt; total, has_more. For exact words; questions: hybrid_search. complete=false: out of budget_ms or total is a lower bound. define:<term> adds definition.
| Parameter | Type | Description |
|---|---|---|
query * | string | Words. Operators: after:/before:, d:A..B, site:, from:, intitle:, intext:, to:/cc:, has:patch, link:, /regex/, -op; alone: newest first |
author | string | Name, address or hash:<8 hex> |
budget_ms | number | ms, 100-15000, default 4500 |
collapse_threads | boolean | One hit per thread, the best (default false) |
inbox | string | all (default), a list, or several comma-separated |
limit | number | 1-200, default 50 |
offset | number | |
since | string | On or after: YYYY[-MM[-DD]], ISO, or 2w/6m/1y ago |
until | string | Before (exclusive), same forms as since |
search-regex Search Regex
POSIX-regex search of mail, optionally fuzzy (k edits per match). search's prefixes apply (s:, f:, t:, d:, b:).
| Parameter | Type | Description |
|---|---|---|
query * | string | POSIX regex |
collapse_threads | boolean | One hit per thread (default false) |
inbox | string | Default pgsql-hackers |
k | number | Edits allowed per match, 0-5 (default 0 = exact) |
limit | number | 1-200, default 50 |
offset | number |
search_all_sources Search All Sources
One search over docs, wiki, mail, commits and the security advisories (CVE list), by relevance; define:<term> adds definition.
| Parameter | Type | Description |
|---|---|---|
query * | string | Words or a question; search's operators |
limit | number | 1-50, default 20 |
search_discord_topics Search Discord Topics
Discord conversations near a query: channel, approximate dates and participants only, never content or links (the Discord community agreement).
| Parameter | Type | Description |
|---|---|---|
query * | string | Natural language |
limit | number | 1-25, default 10 |
search_docs Search Docs
Full-text search of the docs ("phrase", -term, or), title first; the current release unless version(s). One result per page: title, path, url, versions, snippet. define:<term> (MVCC, T611, LATERAL) adds definition (glossary, SQL feature or key word). Operators: intitle:, inurl:, after:/before:. Read: get_doc_page.
| Parameter | Type | Description |
|---|---|---|
query * | string | |
limit | number | 1-50, default 20 |
version | string | e.g. 17 or current |
versions | array | e.g. ["18", "17"] |
search_patches Search Patches
Patch series from [PATCH v2 3/7] subjects: version, number, total, series.
| Parameter | Type | Description |
|---|---|---|
budget_ms | number | ms, 100-15000, default 10000 |
inbox | string | Default pgsql-hackers |
limit | number | 1-100, default 50 |
query | string | Words to filter the patches |
search_patch_lines Search Patch Lines
Which posted patches carry a line: the +/- lines of every patch posted to the lists, for an identifier, line or hunk. One entry per series (thread): first_version and latest_version carrying it (message_id, date, from, version, patch files with urls, matching lines), message count, and commit (the one that landed it via its Discussion: link, or null). Words match from a word start; any whitespace run matches; several lines must be in one file. complete=false (cut says why) at the read cap or budget.
| Parameter | Type | Description |
|---|---|---|
query * | string | Identifier, line or hunk (max 32 lines); a leading + or - names the side |
budget_ms | number | ms, 100-15000, default 10000 |
case_sensitive | boolean | JSON boolean, default true |
inbox | string | One list (default every list) |
limit | number | Series, 1-100, default 20 |
side | string | any (default), added or removed |
said Said
What a person said, objected to or agreed with: rule-labelled stance sentences from their own words. author + topic ("what did Tom Lane object to in SIGFPE handling"), or message_id for one thread (every participant, or add author). Each: verbatim sentence, message_id, url, date, from, stance (opposes, concerned, supports, commits), cue, source (rule or commitfest status). Labels are a rule's guess: read the sentence. counts by stance; messages_read (max 400); complete=false when a cap or budget_ms cut it. Sentences without a cue word are not returned.
| Parameter | Type | Description |
|---|---|---|
author | string | Name, address or hash:<8 hex> |
budget_ms | number | ms, 100-15000, default 3000 |
inbox | string | One list (default every list) |
message_id | string | Any message of the thread |
since | string | From (YYYY[-MM[-DD]] or 2w / 6m / 1y ago) |
topic | string | Words or a question |
until | string | Before (same forms) |
list_skills List Skills
The PostgreSQL agent skills published here: name, description, SKILL.md uri, files. Read one with load_skill.
load_skill Load Skill
Read a skill: name gives SKILL.md and its file list; name + file one file; uri any skill:// document.
| Parameter | Type | Description |
|---|---|---|
file | string | Another file of that skill, as load_skill lists it |
name | string | From list_skills, e.g. postgres-developer |
uri | string | Any skill:// uri (instead of name) |
search_symbols Search Symbols
C functions, macros, types and variables by name in HEAD (BM25, then fuzzy). Each: qualified_name, name, kind, language, file, start_line, end_line.
| Parameter | Type | Description |
|---|---|---|
query * | string | Name, partial name or keyword |
kind | string | function, struct, enum, ... |
language | string | c, cpp, go, python, rust, ... |
limit | number | 1-200, default 50 |
repository | string | Default postgres; several comma-separated |
search_wiki Search Wiki
Full-text search of wiki.postgresql.org, current text unless history=true (per page its latest matching revision: rev_id, revision_url, author, comment, timestamp, is_current, matches). Operators as in search. A commit SHA returns the pages citing it.
| Parameter | Type | Description |
|---|---|---|
query * | string | |
history | boolean | Default false |
limit | number | 1-50, default 20 |
since | string | With history: revisions at or after (YYYY-MM-DD or ISO-8601) |
until | string | With history: revisions before the end of this date |
semantic_search Semantic Search
Mail by meaning (embeddings), every list unless inbox narrows it; each result has inbox and an own-words excerpt.
| Parameter | Type | Description |
|---|---|---|
query * | string | Natural language |
inbox | string | all (default), a list, or several comma-separated |
limit | number | 1-50, default 20 |
semantic_search_code Semantic Search Code
Code symbols by meaning. Needs embeddings.
| Parameter | Type | Description |
|---|---|---|
query * | string | Natural language |
limit | number | 1-50, default 20 |
repository | string |
symbols_in_file Symbols in File
A file's symbols in line order.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
repository | string |
regex_search_code Regex Search Code
Regex search of the CURRENT source only (HEAD), like git grep -E (^ $ per line). Files with repo_name, file_path, line_no, snippet. Other commits or history: code_search match=regex.
| Parameter | Type | Description |
|---|---|---|
query * | string | POSIX extended regex |
limit | number | Files, 1-500, default 50 |
path_glob | string | SQL LIKE on the path, e.g. "%/src/backend/%.c" |
repository | string | Exact repository name (default every repository) |
grep_repository Grep Repository
Literal search of the CURRENT source only (HEAD), like git grep -F. Files with repo_name, file_path, line_no, snippet. Other commits or history: code_search.
| Parameter | Type | Description |
|---|---|---|
query * | string | Literal text (regex characters are escaped) |
case_sensitive | boolean | Default true (false = git grep -i) |
limit | number | Files, 1-500, default 50 |
repository | string | Default every repository |
find_string_literals Find String Literals
A literal in HEAD source, only inside "strings", after // or /* comments, or anywhere.
| Parameter | Type | Description |
|---|---|---|
query * | string | Literal text (regex characters are escaped) |
kind | string | all (default), strings or comments |
limit | number | Files, 1-500, default 50 |
repository | string | Default every repository |
upcoming_events Upcoming Events
PostgreSQL events in a date window: conferences, meetups, online events, CfP and registration deadlines, talks (speakers with person hash), releases, commitfests. Source: PostgreSQL Event Calendar (Andreas Scherbaum).
| Parameter | Type | Description |
|---|---|---|
days | integer | Window, days (default 90, max 730) |
from | string | Start, YYYY-MM-DD (default today) |
kind | string | event, cfp, deadline, session (a talk), release or signal |
limit | integer | Default 50, max 500 |
offset | integer | |
person | string | Person hash (8 hex): their talks only |
series | string | e.g. pgconf-eu, pgconf-dev, posette, talking-postgres |
speaker | string | Speaker-name substring |
to | string | End, YYYY-MM-DD (default from + days) |
where | string | Country, region (europe, north-america, ...), series slug, or online |
calendar_feeds Calendar Feeds
Every calendar feed (iCalendar URL) with event counts: all, regions, countries, series, release cycle, teams, organisations.
combine_calendars Combine Calendars
Several calendar feeds (from calendar_feeds; 1-200) as one subscription: hash, feeds, https and webcal urls; stable per selection.
| Parameter | Type | Description |
|---|---|---|
feeds * | array | |
excludes | array | Feeds to subtract |
cross_reference Cross Reference
What relates to one stored item. ref: Message-ID or URL, commit SHA or URL, docs URL or page, wiki URL or title, commitfest URL, CVE-YYYY-NNNNN (ref.advisory: the security page's row, fixed releases; or status not-a-vulnerability), or feature:<words>. Related threads, commits (releases, reverted_by), docs, wiki pages, entries and people, each with why, strongest first; timeline (status and dated events) for a commit, thread, entry or feature; graph (design-history facts with confidence) for features and entries. ~3 s budget (late parts in timed_out). Same as GET /api/v2/related.
| Parameter | Type | Description |
|---|---|---|
ref * | string | |
kinds | array | |
limit | number | Per kind, 1-25, default 5 |
timeline | boolean | Default true |
version | string | Docs version, default current |
whats_new Whats New
Catch up: what a person or group did, and where they were named, in a window; newest first per kind. who: a name (fuzzy; close matches return ambiguous), email, hash:<8 hex>, team:<slug>, org:<name>, new:<window>, or a list. Kinds: waiting (one person, no topic: their open items, each with rule, priority 0-100, why, outlook, p_reply, p_more_replies; finished threads (a commit, a closed entry, a quiet thread, or a last message that only thanks or reports the work done: done_reason acknowledged / work_done) only counted in left_out unless done=show; a waiting thread whose last message laya estim…
| Parameter | Type | Description |
|---|---|---|
who * | ||
done | string | Finished waiting threads: hide (default) or show |
during | string | Calendar event uid or url, or pg19: its dates |
kinds | array | |
limit | number | Per kind, 1-100, default 20 |
since | string | Date, 2w, today, pg19 or all (default 14 days ago) |
topic | string | Narrows every kind by hybrid search, e.g. NUMA |
until | string | Default now |
code_search Code Search
The postgres source at any commit, or across history (code-history index, byte-exact). match: literal (default), regex (^ $ per line) or identifier (all spellings). Results name sha and ref. history (all, <rev>, A..B): every matching line any commit had, with the commits that added and removed it. complete=false: totals are lower bounds.
| Parameter | Type | Description |
|---|---|---|
query * | string | Text, regex or identifier |
budget_ms | number | ms, 100-15000, default 10000 |
case_sensitive | boolean | Default true |
commit | string | Any commit form, a release (17.2) or <ref>@YYYY-MM-DD; default newest release branch |
context | number | Context lines, 0-20, default 0 |
exclude | array | Globs to drop |
history | string | all, a rev, or A..B |
include | array | Globs to keep, e.g. *.c, src/include/**/*.h |
limit | number | Per page, 1-2000, default 100 |
match | string | Default literal |
offset | number | Results to skip (paging) |
output | string | Default lines |
paths | array | Directories or globs, e.g. src/backend/storage |
repository | string | Only postgres |
read_file Read File
A postgres file at any commit (code-history index): numbered lines, at most 2000 a call (start_line/end_line); total_lines, complete; binary files return metadata.
| Parameter | Type | Description |
|---|---|---|
path * | string | From the root, e.g. src/backend/access/transam/xlog.c |
commit | string | Any commit form, a release (17.2) or <ref>@YYYY-MM-DD; default newest release branch |
end_line | number | Default start_line + 1999 |
repository | string | Only postgres |
start_line | number | Default 1 |
list_files List Files
Files under a directory at any commit (code-history index) with line counts; depth folds deeper paths; glob filters.
| Parameter | Type | Description |
|---|---|---|
commit | string | Any commit form, a release (17.2) or <ref>@YYYY-MM-DD; default newest release branch |
depth | number | Levels below path (default all) |
glob | string | e.g. *.dat, src/include/catalog/*.h |
limit | number | 1-5000, default 500 |
path | string | Directory (default the root) |
repository | string | Only postgres |
blame Blame
Per-line blame of a postgres file at any commit, as git blame. ignore_revs skips pgindent commits (.git-blame-ignore-revs); reverse adds the commit that removed each line. Max 2000 lines a call. proposals=true: per line the earliest posted patch that added it. Not git_blame (a file's commit list).
| Parameter | Type | Description |
|---|---|---|
path * | string | |
commit | string | Any commit form, a release (17.2) or <ref>@YYYY-MM-DD; default newest release branch |
end_line | number | Default start_line + 1999 |
ignore_revs | boolean | Default true |
proposals | boolean | Default false |
repository | string | Only postgres |
reverse | boolean | Default false |
start_line | number | Default 1 |
get_commit Get Commit
One postgres commit (code-history index): message, trailers (names only), Discussion threads, back-patch siblings, first_releases (per branch: sha, release such as 14.23 or null, first_version, shipped), reverted_by, reverts, posted_patch (the Discussion patch mail matching it best, score 0-1, or null), files with line counts, and the diff (max 3000 lines; diff_complete).
| Parameter | Type | Description |
|---|---|---|
commit * | string | |
context | number | Diff context lines (0-1000, default 3) |
diff | boolean | Include the diff (default true) |
paths | array | Only diff files under these paths |
repository | string | Only postgres |
search_commits Search Commits
Postgres commits (code-history index), newest first, like git log. range: a rev (its first-parent line), A..B, or all (default: every branch; each commit once, branches = where its change landed). Filters: message, author (also credit trailers), paths, since/until, changed_lines (-G), occurrences (-S). total: every match, not just the page; output=count returns only it. complete=false (total_is_estimate) when -G/-S matched over 300,000 lines.
| Parameter | Type | Description |
|---|---|---|
author | string | Regex |
budget_ms | number | ms, 100-15000, default 10000 |
changed_lines | string | Regex (git log -G) |
limit | number | Commits (1-200, default 30) |
message | string | Regex over the commit message |
occurrences | string | String (git log -S) |
offset | number | Commits to skip |
output | string | commits (default) or count (total only) |
paths | array | Path prefixes the commit touched |
range | string | A rev, A..B, or all (default) |
repository | string | Only postgres |
since | string | YYYY-MM-DD (committed on or after) |
until | string | YYYY-MM-DD (committed before) |
get_ontology Get Ontology
What this server knows and which tool reads it: kinds of fact with attributes and counts, the design-history graph's relations, sources and confidence. Same as GET /api/v2/ontology.