{"schema": "pgtrue.report/1", "url": "https://pgtrue.postgres.ai/shared/brief/c6cbff31-ef76-46d8-8a67-e20c21c56757", "published": "2026-10-19T07:56:02Z", "publisher": "PostgresAI", "article": {"title": "What today's software owes to Bronze Age clocks \u2014 PlanetScale", "url": "https://planetscale.com/blog/leaky-buckets-in-software-explained", "date_published": "2026-10-07T00:00:00Z", "author": "Simeon Griggs", "publisher": "PlanetScale"}, "grade": "A-", "axes": [{"axis": "Factual", "summary": "B+ \u00b7 1 wrong of 8 checked \u00b7 0 caveats"}, {"axis": "Applicable", "summary": "A \u00b7 0 wrong of 3 checked \u00b7 0 caveats"}, {"axis": "Consistent", "summary": "A \u00b7 0 wrong of 8 checked \u00b7 0 caveats"}, {"axis": "Transparent", "summary": "A \u00b7 0 wrong of 7 checked \u00b7 0 caveats"}, {"axis": "Safe", "summary": "A \u00b7 0 wrong of 4 checked \u00b7 0 caveats"}], "findings": [{"anchor": "F1", "url": "https://pgtrue.postgres.ai/shared/brief/c6cbff31-ef76-46d8-8a67-e20c21c56757#F1", "claim": "Maximum concurrent workers similarly controls the resources a single query can consume\u2026", "title": "The concurrency limit covers matching traffic, not one query", "explanation": "Maximum concurrent queries limits the policy's percentage of available worker processes. It applies across matching traffic. Treating it as a single-query worker cap can produce unexpected rejections when several matching queries run.", "verdict": "False", "sources": [{"url": "https://planetscale.com/docs/postgres/traffic-control/concepts", "label": "https://planetscale.com/docs/postgres/traffic-control/concepts"}]}, {"anchor": "F3", "url": "https://pgtrue.postgres.ai/shared/brief/c6cbff31-ef76-46d8-8a67-e20c21c56757#F3", "claim": "\u2026configuration options to control expensive queries that have already consumed resources, such as statement_timeout\u2026", "title": "statement_timeout limits elapsed statement time", "explanation": "PostgreSQL 18.6 measures statement_timeout from command arrival through completion. postgres.c:5213 enables its elapsed-time timer. The setting does not reserve resources or reject queries by estimated execution cost.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/config.sgml#L10216-L10250", "label": "REL_18_6 \u00b7 doc/src/sgml/config.sgml:10216-10250"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/tcop/postgres.c#L5200-L5224", "label": "REL_18_6 \u00b7 src/backend/tcop/postgres.c:5200-5224"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/config.sgml#L10233-L10234", "label": "REL_18_6 \u00b7 doc/src/sgml/config.sgml:10233-10234"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/tcop/postgres.c#L5213-L5217", "label": "REL_18_6 \u00b7 src/backend/tcop/postgres.c:5213-5217"}]}, {"anchor": "F5", "url": "https://pgtrue.postgres.ai/shared/brief/c6cbff31-ef76-46d8-8a67-e20c21c56757#F5", "claim": "A query may be targeted by multiple resource budgets and must satisfy all of them to proceed.", "title": "Every matching enforced budget must permit the query", "explanation": "Traffic Control combines matching resource budgets with AND logic. Any matching enforced budget can block the query.", "verdict": "Accurate", "sources": [{"url": "https://planetscale.com/docs/postgres/traffic-control/concepts", "label": "https://planetscale.com/docs/postgres/traffic-control/concepts"}, {"url": "https://planetscale.com/blog/patterns-for-postgres-traffic-control", "label": "https://planetscale.com/blog/patterns-for-postgres-traffic-control"}]}, {"anchor": "F6", "url": "https://pgtrue.postgres.ai/shared/brief/c6cbff31-ef76-46d8-8a67-e20c21c56757#F6", "claim": "\u2026we recommend creating a new budget in warning mode first\u2026", "title": "Warning mode matches the documented rollout", "explanation": "Traffic Control documentation recommends creating budgets in Warn mode, observing violations, adjusting limits, and then switching to Enforce.", "verdict": "Accurate", "sources": [{"url": "https://planetscale.com/docs/postgres/traffic-control/concepts", "label": "https://planetscale.com/docs/postgres/traffic-control/concepts"}, {"url": "https://planetscale.com/docs/postgres/traffic-control/concepts", "label": "https://planetscale.com/docs/postgres/traffic-control/concepts"}]}, {"anchor": "F7", "url": "https://pgtrue.postgres.ai/shared/brief/c6cbff31-ef76-46d8-8a67-e20c21c56757#F7", "claim": "Each app on each store gets a bucket with a fixed size and restore rate.", "title": "GraphQL Admin API quotas use app-and-store scope", "explanation": "The GraphQL Admin API documentation assigns rate limits to each app-and-store combination. The article describes that scope correctly.", "verdict": "Accurate", "sources": [{"url": "https://shopify.dev/docs/apps/build/apis/graphql-admin/rate-limits", "label": "https://shopify.dev/docs/apps/build/apis/graphql-admin/rate-limits"}]}, {"anchor": "F8", "url": "https://pgtrue.postgres.ai/shared/brief/c6cbff31-ef76-46d8-8a67-e20c21c56757#F8", "claim": "Before a query runs, the bucket must have room for its estimated cost.", "title": "GraphQL admission requires capacity for requested cost", "explanation": "The GraphQL Admin API documentation requires available bucket capacity for requested query cost before execution. The quoted admission rule matches that requirement.", "verdict": "Accurate", "sources": [{"url": "https://shopify.dev/docs/apps/build/apis/graphql-admin/rate-limits", "label": "https://shopify.dev/docs/apps/build/apis/graphql-admin/rate-limits"}]}, {"anchor": "F11", "url": "https://pgtrue.postgres.ai/shared/brief/c6cbff31-ef76-46d8-8a67-e20c21c56757#F11", "claim": "\u2026a 25% server share means a quarter of your server's capacity drains back every second\u2026", "explanation": "The 25% example correctly expresses one-quarter of server capacity. Concepts defines server share as a percentage of overall system resources. E-25 supports those proportions. It does not establish CPU-core allocations or verify the article's per-second refill rate.", "verdict": "Accurate", "sources": [{"url": "https://planetscale.com/docs/postgres/traffic-control/concepts", "label": "https://planetscale.com/docs/postgres/traffic-control/concepts"}]}, {"anchor": "F12", "url": "https://pgtrue.postgres.ai/shared/brief/c6cbff31-ef76-46d8-8a67-e20c21c56757#F12", "claim": "\u2026failure of the query planner can ask more of your database than it can reasonably be expected to handle\u2026", "title": "A changed query plan can exhaust CPU resources", "explanation": "The linked incident describes an index-using query changing to full table scans and consuming all available CPU resources. That supports the article's overload claim about PostgreSQL plan choices.", "verdict": "Accurate", "sources": [{"url": "https://planetscale.com/blog/when-the-postgres-query-planner-goes-rogue", "label": "https://planetscale.com/blog/when-the-postgres-query-planner-goes-rogue"}]}]}