live wire
▸EKOS submits 70.15% on BIRD’s hidden test and 88.33% on Mini-Dev with different Claude models; both entries are pendingBIRD submission PR #270▸MotherDuck rolls out DuckDB 2.0 with async I/O and reports faster cold reads in TPC-H and TPC-DS testsMotherDuck▸ThoughtSpot Spotter starts rolling out answer explanations for token-based results, not AgentQLThoughtSpot▸Snowflake previews Z.ai GLM 5.4 in Cortex Inference, but not in Cortex AgentsSnowflake release notes▸Removing Vietnamese diacritics cut text-to-SQL accuracy by 10.3–37.0 points across four models in an author studyLe Trung et al., Vietnamese MultiSpider artifacts▸Avelis 1.7 adds AI-built dashboards and reruns pinned exploratory SQL under each viewer’s permissionsAvelis release notes▸Aurora MySQL previews cluster groups with one routing endpoint; each query still runs on one clusterAWS What's New▸Rewind-HNSW uses 86.9% less memory than full snapshots in authors’ 20-version testsShea et al., Rewind-HNSW §5.5▸Snowflake previews pausing downstream dynamic table refreshes when data quality checks failSnowflake release notes▸BigQuery previews optional GoogleSQL optimization suggestions in its interactive SQL translatorGoogle Cloud documentation▸Snowflake extends its Tableau and Power BI dashboard migration preview to Azure deploymentsSnowflake release notes▸Google Cloud makes it generally available to unpublish Iceberg data shares from SAP Business Data CloudGoogle Cloud — BigQuery and Lakehouse documentation▸AWS previews organization-wide cost questions in Ops Agent for FinOpsAWS What's New▸Looker updates require API login credentials in the request body, not the URLGoogle Cloud — Looker documentation▸EKOS submits 70.15% on BIRD’s hidden test and 88.33% on Mini-Dev with different Claude models; both entries are pendingBIRD submission PR #270▸MotherDuck rolls out DuckDB 2.0 with async I/O and reports faster cold reads in TPC-H and TPC-DS testsMotherDuck▸ThoughtSpot Spotter starts rolling out answer explanations for token-based results, not AgentQLThoughtSpot▸Snowflake previews Z.ai GLM 5.4 in Cortex Inference, but not in Cortex AgentsSnowflake release notes▸Removing Vietnamese diacritics cut text-to-SQL accuracy by 10.3–37.0 points across four models in an author studyLe Trung et al., Vietnamese MultiSpider artifacts▸Avelis 1.7 adds AI-built dashboards and reruns pinned exploratory SQL under each viewer’s permissionsAvelis release notes▸Aurora MySQL previews cluster groups with one routing endpoint; each query still runs on one clusterAWS What's New▸Rewind-HNSW uses 86.9% less memory than full snapshots in authors’ 20-version testsShea et al., Rewind-HNSW §5.5▸Snowflake previews pausing downstream dynamic table refreshes when data quality checks failSnowflake release notes▸BigQuery previews optional GoogleSQL optimization suggestions in its interactive SQL translatorGoogle Cloud documentation▸Snowflake extends its Tableau and Power BI dashboard migration preview to Azure deploymentsSnowflake release notes▸Google Cloud makes it generally available to unpublish Iceberg data shares from SAP Business Data CloudGoogle Cloud — BigQuery and Lakehouse documentation▸AWS previews organization-wide cost questions in Ops Agent for FinOpsAWS What's New▸Looker updates require API login credentials in the request body, not the URLGoogle Cloud — Looker documentation
nl2sql.ai
guideQUERY PERFORMANCE

PostgreSQL 19 can say a query hint matched even when it slows the query

In a synthetic test on ClickHouse Managed Postgres, a bitmap-scan hint helped when failed events were clustered. After the data changed, PostgreSQL still applied the hint, but the unhinted query ran faster.

By The News Desk· Nov 29, 2026the quick take — two AI hosts go live when you do

In a ClickHouse test, a PostgreSQL 19 scan hint cut execution time from roughly 1.46 seconds to under 10 milliseconds. When failures became common near the start of the same table, PostgreSQL still followed the hint, but the default plan ran faster. For teams tuning recurring SQL generated by an analytics agent, the test shows why checking the plan and measuring its performance are separate jobs.

What matched actually means

PostgreSQL’s Advice Feedback documentation says matched means the planner saw all the named targets together at a point when the advice could be enforced. It does not, by itself, show that the planner complied. The docs show an index hint for a nonexistent index marked matched, inapplicable, failed. Read the other flags and check the actual plan node before concluding the hint took effect.

Same query, different data

In a November 25 ClickHouse engineering post, Colton Shepard tested a query returning the first 10 failed events in ID order. The initial synthetic table put 50,000 failures after 10 million successful events. The default primary-key scan discarded those 10 million rows before returning the answer. ClickHouse reported execution times of 1,461.947 milliseconds without advice and 9.687 milliseconds with advice to use a bitmap heap scan.

Shepard then set every third row to failed and ran VACUUM ANALYZE. The unhinted primary-key scan now discarded only 20 rows before returning ten matches. It took 0.052 milliseconds, compared with 368.866 milliseconds for the hinted query. The latter plan showed a Parallel Bitmap Heap Scan on events and listed BITMAP_HEAP_SCAN(events) / matched / without a failed flag. The scan node and the feedback together show that the planner followed the hint even though it no longer helped. These timings are from a synthetic example on ClickHouse Managed Postgres, not a production benchmark or a prediction for other deployments.

What to test before keeping a hint

For a recurring agent-generated query, compare hinted and unhinted execution on representative data. Include cases where qualifying rows are rare and where they are easy to find in the requested order. Check the returned rows for correctness, then separately record the actual plan, execution time and work done. In ClickHouse’s example, LIMIT 10 stayed the same even as the work needed to find those rows changed.

Recheck retained hints after a material change in the data. As the PostgreSQL documentation warns, plan advice constrains the planner’s choices and can keep it from adapting. Use matched to diagnose how the advice was handled; use the measurements to decide whether to keep it.

Filed by The News Desk. Corrections: desk@nl2sql.ai · Our standards →

comments · 0

    Comments are moderated before they appear. Your email is used once to confirm it is you — never shown, never sold. Corrections and questions get an answer from the desk when we have one.