pg.ddx.io: the PostgreSQL community's memory

v2026.10.22
io.ddx.pg/archive Checked 2 days ago Published 1 month ago

Every 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…

ParameterTypeDescription
query *string
authorstringName, address or hash:<8 hex>
budget_msnumberms, 100-15000, default 4500
inboxstringall (default), a list, or several comma-separated
sincestringOn or after: YYYY[-MM[-DD]], ISO, or 2w/6m/1y ago
token_budgetnumberDefault 4000, max 32000
untilstringBefore (exclusive), same forms as since

animal_history Animal History

One animal's runs, newest first; branch and since filter.

ParameterTypeDescription
name *stringAnimal name
branchstringOne branch, e.g. master
limitnumber1-1000, default 100
sincestringRuns 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.

ParameterTypeDescription
owner_emailstringExact
owner_namestringExact

blame_symbol Blame Symbol

The commits that changed a symbol's lines in its file.

ParameterTypeDescription
qualified_name *stringFrom search_symbols
repositorystring

browse_by_date Browse by Date

Threads active in a date range [since, until) on one list.

ParameterTypeDescription
since *stringStart date (YYYY-MM-DD or YYYYMMDD)
until *stringEnd date, exclusive (same forms)
inboxstringDefault pgsql-hackers
limitnumberThreads, 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.

ParameterTypeDescription
pr_url *stringForge pull request URL

code_index_status Code Index Status

Code index statistics: files, symbols by kind and language, edges, communities.

ParameterTypeDescription
repositorystring

codebase_map Codebase Map

File and symbol counts per directory.

ParameterTypeDescription
depthnumberDirectory depth (default 2)
repositorystring

commit_buildfarm_status Commit Buildfarm Status

Buildfarm results for one postgres commit: per animal branch, status, failing stage, log url; rollup counts.

ParameterTypeDescription
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).

ParameterTypeDescription
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.

ParameterTypeDescription
releasestringe.g. PG17, 17, pre-9.6; empty = all

detect_changes Detect Changes

The symbols that changed between two commits (file content hashes).

ParameterTypeDescription
from_commit *stringBase commit. Any commit form
repositorystring
to_commitstringTarget commit (default HEAD)

embedding_status Embedding Status

Embedding coverage of a list: messages embedded, model, last run.

ParameterTypeDescription
inboxstringDefault pgsql-hackers

entry_branches Entry Branches

Repository branches tracked for a commitfest entry: repo, branch_name, is_authoritative.

ParameterTypeDescription
cf_id *numberEntry id

entry_history Entry History

An entry's status across commitfests, matched by shared thread Message-ID (precise), else by title prefix (weak).

ParameterTypeDescription
cf_id *numberEntry id

find_breaks Find Breaks

Animals that failed on a branch between two commits, by run time (the buildfarm has no commit order).

ParameterTypeDescription
branch *stringBranch, e.g. master
from_commit *stringWindow start
to_commit *stringWindow end

find_contributions Find Contributions

One person's contribution rows: commit SHAs and animals, each with role and release. By email, else name.

ParameterTypeDescription
emailstringCanonical email
limitnumber1-500, default 50
namestringName substring (when no email)
releasestringe.g. PG17, 17, REL_17_STABLE, pre-9.6
rolestringOne role

find_dead_code Find Dead Code

Functions and methods nothing calls (no incoming call edges).

ParameterTypeDescription
limitnumber1-200, default 50
repositorystring

find_entries_for_author Find Entries for Author

Commitfest entries a person authored: email (exact) or name (substring, case-sensitive).

ParameterTypeDescription
emailstringExact email
limitnumber1-500, default 100
namestringName substring (case-sensitive)

find_entries_for_thread Find Entries for Thread

Commitfest entries whose page links any message of the thread.

ParameterTypeDescription
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).

ParameterTypeDescription
name *stringAnimal, e.g. fairywren
limitnumber1-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.

ParameterTypeDescription
limitnumber1-500, default 100
platformstringlinux, macos, windows, freebsd, netbsd, openbsd
statusstringe.g. needs-review (default every active)

find_failing_runs Find Failing Runs

The newest failing buildfarm runs fleet-wide: what is broken now.

ParameterTypeDescription
branchstringOne branch, e.g. master
limitnumber1-1000, default 100
sincestringRuns 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?

ParameterTypeDescription
limitnumber1-500, default 100
min_daysnumberDays 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).

ParameterTypeDescription
failing_onstringPlatform it fails on, e.g. macos
limitnumber1-500, default 100
passing_onstringPlatform it passes on, e.g. linux

find_pattern Find Pattern

Regex search of code symbol bodies (trigram-indexed).

ParameterTypeDescription
query *stringRegular expression
limitnumber1-100, default 50
repositorystring

find_rebase_needed_patches Find Rebase Needed Patches

Entries cfbot says no longer apply to master: they need a rebase.

ParameterTypeDescription
limitnumber1-500, default 100

find_similar_messages Find Similar Messages

Messages near one message by embedding: related or duplicate threads.

ParameterTypeDescription
message_id *string
inboxstring
limitnumber1-50, default 10

get_animal Get Animal

One animal: hardware, OS, compiler, owner, branches, last status, its last 20 runs.

ParameterTypeDescription
name *stringAnimal, 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).

ParameterTypeDescription
message_id *string
end_linenumberText: last line, at most start_line + 1999
filenamestringFilename substring
inboxstring
indexnumber1-based index (from get_message attachments)
start_linenumberText: 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.

ParameterTypeDescription
author *stringName or address
inboxstringDefault pgsql-hackers
limitnumber1-200, default 50
offsetnumber
sincestringOn or after: YYYY[-MM[-DD]] or 2w/6m/1y ago
untilstringBefore (exclusive), same forms

get_callees Get Callees

What a symbol calls or references (forward call graph).

ParameterTypeDescription
qualified_name *stringFrom search_symbols
limitnumber1-100, default 50
repositorystring

get_callers Get Callers

Who calls or references qualified_name, with file and lines. HEAD only; macros and function pointers are not followed.

ParameterTypeDescription
qualified_name *stringFrom search_symbols
limitnumber1-100, default 50
repositorystring

get_commitfest Get Commitfest

One commitfest: entries by status and its top authors.

ParameterTypeDescription
commitfest_number *numberCommitfest number, e.g. 59

get_communities Get Communities

Louvain clusters of the call graph: related symbols by functional area.

ParameterTypeDescription
limitnumber1-100, default 20
repositorystring

get_community Get Community

One community and its symbols.

ParameterTypeDescription
community_id *numberCommunity id (from get_communities)
repositorystring

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>.

ParameterTypeDescription
emailstringExact canonical email
namestringName substring

get_contributor_history Get Contributor History

Every list message from a sender (address or name).

ParameterTypeDescription
author *stringAddress or display name
limitnumber1-100, default 50

get_dependents Get Dependents

Transitive dependents: the blast radius if this symbol changes.

ParameterTypeDescription
qualified_name *stringFrom search_symbols
limitnumber1-200, default 50
max_depthnumberBFS depth, 1-5, default 3
repositorystring

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.

ParameterTypeDescription
path *stringPage, e.g. brin.html
versionstringe.g. 17, current (default the latest)

get_entry Get Entry

One commitfest entry: title, status, commitfest, authors, reviewers, committer, mail threads, branches.

ParameterTypeDescription
cf_id *numberEntry id

get_execution_flows Get Execution Flows

Execution paths through the call graph from entry points.

ParameterTypeDescription
limitnumber1-50, default 20
max_depthnumberBFS depth, 1-10, default 8
repositorystring

get_impact Get Impact

Impact of changing a symbol: risk level, blast radius, communities and flows affected.

ParameterTypeDescription
qualified_name *stringFrom search_symbols
repositorystring

get_inbox_info Get Inbox Info

A list's name, addresses, message_count (a cross-post counts on each list) and last activity.

ParameterTypeDescription
inboxstringDefault 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.

ParameterTypeDescription
inboxstringDefault pgsql-hackers
periodstringday, week, month (default) or year
top_authorsnumber1-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.

ParameterTypeDescription
inbox *stringList 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.

ParameterTypeDescription
message_id *string
full_textbooleanDefault false: own words
inboxstring
include_bodybooleanDefault true
include_llmbooleanDefault false: each message's llm_estimate (see llm_estimate)
quotesarrayUp to 20 quotes to check (12+ chars)

get_message_headers Get Message Headers

A message's headers as key/value pairs, all or one.

ParameterTypeDescription
message_id *string
headerstringOne header, e.g. X-Mailer (default all)
inboxstring

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.

ParameterTypeDescription
message_id *string
inboxstring

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.

ParameterTypeDescription
after *number0 first, then last_article_num
inboxstringDefault pgsql-hackers
limitnumber1-1000, default 200

get_patch_branches Get Patch Branches

Git branches made from a pull request's patch series.

ParameterTypeDescription
pr_url *stringForge 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).

ParameterTypeDescription
cf_id *numberEntry id

get_patch_series Get Patch Series

Every iteration of a pull request posted to the lists.

ParameterTypeDescription
pr_url *stringForge pull request URL

get_raw_message Get Raw Message

A message's raw RFC 822 bytes.

ParameterTypeDescription
message_id *string
inboxstring

get_repo_sync_stats Get Repo Sync Stats

A repository's commit cadence (median interval, suggested poll) and fetch log.

ParameterTypeDescription
repositorystring

get_repository_summary Get Repository Summary

One repository: commits, top 10 contributors, branches, languages (indexed symbols), most-touched paths (sampled).

ParameterTypeDescription
repository *stringRepository name

get_signature Get Signature

A symbol's signature and doc comment.

ParameterTypeDescription
qualified_name *stringFrom search_symbols
repositorystring

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).

ParameterTypeDescription
name *stringA list_sources name
kindstringinbox, 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.

ParameterTypeDescription
qualified_name *stringe.g. pkg::func_name
repositorystring

get_tests_for Get Tests for

Test symbols that reference a symbol.

ParameterTypeDescription
qualified_name *stringFrom search_symbols
repositorystring

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.

ParameterTypeDescription
message_id *string
full_textbooleanDefault false: own words
groupingstringreply (default) or subject
inboxstring
include_bodybooleanDefault true
include_llmbooleanDefault false: each message's llm_estimate (see llm_estimate)
limitnumberMessages per page, 1-500, default 20
max_body_charsnumberDefault 4000; 0 = no cap
offsetnumbernext_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.

ParameterTypeDescription
message_id *string
inboxstring

get_wiki_history Get Wiki History

A wiki page's revisions.

ParameterTypeDescription
title *string
limitnumber1-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>.

ParameterTypeDescription
title *string

git_analyze_activity Git Analyze Activity

Commits per period: development pace.

ParameterTypeDescription
periodstringweek, month (default), quarter or year
repositorystring

git_analyze_authors Git Analyze Authors

Per author: commits, first and last date; by commit count.

ParameterTypeDescription
limitnumber1-100, default 25
repositorystring

git_analyze_bus_factor Git Analyze Bus Factor

Files with the fewest distinct authors (knowledge silos).

ParameterTypeDescription
limitnumber1-100, default 25
repositorystring

git_analyze_churn Git Analyze Churn

Most often changed files.

ParameterTypeDescription
limitnumber1-100, default 25
repositorystring

git_analyze_coupling Git Analyze Coupling

File pairs often changed together (hidden dependencies).

ParameterTypeDescription
limitnumber1-100, default 25
min_countnumberMinimum co-changes (default 2)
repositorystring

git_analyze_hotspots Git Analyze Hotspots

Churn per directory: the most changed areas.

ParameterTypeDescription
depthnumberDirectory depth (default 1)
limitnumber1-100, default 25
repositorystring

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.

ParameterTypeDescription
path *string
commitstringDefault HEAD
limitnumber1-1000, default 100
repositorystring

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).

ParameterTypeDescription
authorstringRange mode: author substring
base_branchstringRange mode: base (default branch)
from_commitstringDiff mode: from. Any commit form
head_branchstringSelects range mode
limitnumberRange mode: 1-1000, default 100
messagestringRange mode: message substring
pathstringOnly this file path
repositorystring
to_commitstringDiff 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.

ParameterTypeDescription
authorstringName or email substring
branchstringDefault the default branch
formatstringfull (default: whole message) or oneline
limitnumber1-200, default 50
offsetnumber
pathstringCommits touching this path
repositorystring
sincestringAfter (YYYY-MM-DD or RFC 3339)
untilstringBefore (YYYY-MM-DD or RFC 3339)

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.

ParameterTypeDescription
path *string
commitstringAny commit form (default HEAD)
end_linenumberAt most start_line + 1999
numberedbooleanDefault true
repositorystring
start_linenumberFirst 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.

ParameterTypeDescription
query *string
inboxstringList to search (default pgsql-hackers)
limitnumberPer section, 1-25, default 5
repositorystringIts default branch is traced (default postgres)

hybrid_search_code Hybrid Search Code

Code search by keyword and meaning, fused (RRF). Needs embeddings.

ParameterTypeDescription
query *stringKeywords or natural language
keyword_weightnumber0.0-1.0, default 0.5
limitnumber1-100, default 20
repositorystring

list_animals List Animals

Buildfarm animals by OS, branch, last status or owner; failing first, then by name.

ParameterTypeDescription
branchstringTracking this branch, e.g. REL_18_STABLE
limitnumber1-500, default 100
osstringExact OS
ownerstringExact owner name or email
statusstringpassed, failed, flapping or unknown

list_branches List Branches

A repository's branches: head commit, default.

ParameterTypeDescription
repositorystring

list_commitfests List Commitfests

Commitfests: status (open / in-progress / closed) and entry counts by status.

ParameterTypeDescription
statusstringopen, in-progress or closed

list_contributors List Contributors

Contributors from git trailers, author/committer headers and animal owners, most contributions first.

ParameterTypeDescription
limitnumber1-500, default 100
offsetnumber
releasestringe.g. PG17, 17, REL_17_STABLE, pre-9.6
rolestringauthored, reviewed, committed, ...
sourcestringgit, 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.

ParameterTypeDescription
commitfest_numbernumbere.g. 59
limitnumber1-500, default 100
offsetnumber
statusstringe.g. needs-review, committed
topicstringTopic substring

list_inboxes List Inboxes

Every list: name, message_count, latest_message_date, latest_import_date, listid, description.

ParameterTypeDescription
limitnumber
min_messagesnumberAt least this many messages
offsetnumber

list_projects List Projects

Projects linking a forge repository to a list.

list_recent List Recent

A list's newest messages.

ParameterTypeDescription
inboxstringDefault pgsql-hackers
limitnumber1-200, default 25

list_repositories List Repositories

Every repository: name, branch, commit_count, file_count, symbol_count, latest_commit, last_fetched_at, import_state.

ParameterTypeDescription
branchstringDefault branch equals this
limitnumber
min_commitsnumberAt least this many commits
offsetnumber

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.

ParameterTypeDescription
kindstringinbox, repository, docs, wiki, discord or security
limitnumber
min_itemsnumberAt least this many items
offsetnumber

list_threads List Threads

A list's recent threads: message counts, date ranges, latest message.

ParameterTypeDescription
beforenumberUnix time (paging)
inboxstringDefault pgsql-hackers
limitnumber1-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.

ParameterTypeDescription
message_id *string
inboxstring

recent_commitfest_activity Recent Commitfest Activity

Entries updated since a cutoff, with a status histogram.

ParameterTypeDescription
limitnumber1-500, default 100
sincestringRFC 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.

ParameterTypeDescription
query *stringe.g. NUMA, "Tom Lane"; commitfest:this|next, release:this|next|PG20
commitfestsstringcurrent (default), all, or numbers "62,61"
limitinteger1-50, default 20
sortstringDefault 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.

ParameterTypeDescription
release *stringe.g. PG17, 17, REL_17_STABLE, pre-9.6
limitnumberPer role, 1-100, default 20

repository_stats Repository Stats

A repository's commits, files, branch and import state.

ParameterTypeDescription
repositorystring

search-regex Search Regex

POSIX-regex search of mail, optionally fuzzy (k edits per match). search's prefixes apply (s:, f:, t:, d:, b:).

ParameterTypeDescription
query *stringPOSIX regex
collapse_threadsbooleanOne hit per thread (default false)
inboxstringDefault pgsql-hackers
knumberEdits allowed per match, 0-5 (default 0 = exact)
limitnumber1-200, default 50
offsetnumber

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.

ParameterTypeDescription
query *stringWords or a question; search's operators
limitnumber1-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).

ParameterTypeDescription
query *stringNatural language
limitnumber1-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.

ParameterTypeDescription
query *string
limitnumber1-50, default 20
versionstringe.g. 17 or current
versionsarraye.g. ["18", "17"]

search_patches Search Patches

Patch series from [PATCH v2 3/7] subjects: version, number, total, series.

ParameterTypeDescription
budget_msnumberms, 100-15000, default 10000
inboxstringDefault pgsql-hackers
limitnumber1-100, default 50
querystringWords 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.

ParameterTypeDescription
query *stringIdentifier, line or hunk (max 32 lines); a leading + or - names the side
budget_msnumberms, 100-15000, default 10000
case_sensitivebooleanJSON boolean, default true
inboxstringOne list (default every list)
limitnumberSeries, 1-100, default 20
sidestringany (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.

ParameterTypeDescription
authorstringName, address or hash:<8 hex>
budget_msnumberms, 100-15000, default 3000
inboxstringOne list (default every list)
message_idstringAny message of the thread
sincestringFrom (YYYY[-MM[-DD]] or 2w / 6m / 1y ago)
topicstringWords or a question
untilstringBefore (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.

ParameterTypeDescription
filestringAnother file of that skill, as load_skill lists it
namestringFrom list_skills, e.g. postgres-developer
uristringAny 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.

ParameterTypeDescription
query *stringName, partial name or keyword
kindstringfunction, struct, enum, ...
languagestringc, cpp, go, python, rust, ...
limitnumber1-200, default 50
repositorystringDefault 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.

ParameterTypeDescription
query *string
historybooleanDefault false
limitnumber1-50, default 20
sincestringWith history: revisions at or after (YYYY-MM-DD or ISO-8601)
untilstringWith history: revisions before the end of this date

semantic_search_code Semantic Search Code

Code symbols by meaning. Needs embeddings.

ParameterTypeDescription
query *stringNatural language
limitnumber1-50, default 20
repositorystring

symbols_in_file Symbols in File

A file's symbols in line order.

ParameterTypeDescription
path *string
repositorystring

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.

ParameterTypeDescription
query *stringPOSIX extended regex
limitnumberFiles, 1-500, default 50
path_globstringSQL LIKE on the path, e.g. "%/src/backend/%.c"
repositorystringExact 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.

ParameterTypeDescription
query *stringLiteral text (regex characters are escaped)
case_sensitivebooleanDefault true (false = git grep -i)
limitnumberFiles, 1-500, default 50
repositorystringDefault every repository

find_string_literals Find String Literals

A literal in HEAD source, only inside "strings", after // or /* comments, or anywhere.

ParameterTypeDescription
query *stringLiteral text (regex characters are escaped)
kindstringall (default), strings or comments
limitnumberFiles, 1-500, default 50
repositorystringDefault 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).

ParameterTypeDescription
daysintegerWindow, days (default 90, max 730)
fromstringStart, YYYY-MM-DD (default today)
kindstringevent, cfp, deadline, session (a talk), release or signal
limitintegerDefault 50, max 500
offsetinteger
personstringPerson hash (8 hex): their talks only
seriesstringe.g. pgconf-eu, pgconf-dev, posette, talking-postgres
speakerstringSpeaker-name substring
tostringEnd, YYYY-MM-DD (default from + days)
wherestringCountry, 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.

ParameterTypeDescription
feeds *array
excludesarrayFeeds 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.

ParameterTypeDescription
ref *string
kindsarray
limitnumberPer kind, 1-25, default 5
timelinebooleanDefault true
versionstringDocs 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…

ParameterTypeDescription
who *
donestringFinished waiting threads: hide (default) or show
duringstringCalendar event uid or url, or pg19: its dates
kindsarray
limitnumberPer kind, 1-100, default 20
sincestringDate, 2w, today, pg19 or all (default 14 days ago)
topicstringNarrows every kind by hybrid search, e.g. NUMA
untilstringDefault now

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.

ParameterTypeDescription
path *stringFrom the root, e.g. src/backend/access/transam/xlog.c
commitstringAny commit form, a release (17.2) or <ref>@YYYY-MM-DD; default newest release branch
end_linenumberDefault start_line + 1999
repositorystringOnly postgres
start_linenumberDefault 1

list_files List Files

Files under a directory at any commit (code-history index) with line counts; depth folds deeper paths; glob filters.

ParameterTypeDescription
commitstringAny commit form, a release (17.2) or <ref>@YYYY-MM-DD; default newest release branch
depthnumberLevels below path (default all)
globstringe.g. *.dat, src/include/catalog/*.h
limitnumber1-5000, default 500
pathstringDirectory (default the root)
repositorystringOnly 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).

ParameterTypeDescription
path *string
commitstringAny commit form, a release (17.2) or <ref>@YYYY-MM-DD; default newest release branch
end_linenumberDefault start_line + 1999
ignore_revsbooleanDefault true
proposalsbooleanDefault false
repositorystringOnly postgres
reversebooleanDefault false
start_linenumberDefault 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).

ParameterTypeDescription
commit *string
contextnumberDiff context lines (0-1000, default 3)
diffbooleanInclude the diff (default true)
pathsarrayOnly diff files under these paths
repositorystringOnly 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.

ParameterTypeDescription
authorstringRegex
budget_msnumberms, 100-15000, default 10000
changed_linesstringRegex (git log -G)
limitnumberCommits (1-200, default 30)
messagestringRegex over the commit message
occurrencesstringString (git log -S)
offsetnumberCommits to skip
outputstringcommits (default) or count (total only)
pathsarrayPath prefixes the commit touched
rangestringA rev, A..B, or all (default)
repositorystringOnly postgres
sincestringYYYY-MM-DD (committed on or after)
untilstringYYYY-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.