<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/view-the-complete-distribution-of-tags-assigned-to-a-query-pattern-search-queries-by-tag-and-see-a-unqpiak3o" -->

---
title: View the complete distribution of tags assigned to a...
description: PlanetScale has enhanced its Insights query tagging feature for Postgres databases as part of the Traffic Control launch. Tags are now present in aggregated...
canonical: https://daily.dev/posts/view-the-complete-distribution-of-tags-assigned-to-a-query-pattern-search-queries-by-tag-and-see-a-unqpiak3o
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: View the complete distribution of tags assigned to a query pattern, search queries by tag, and see a per-tag breakdown of database-level statistics | daily.dev
og:description: PlanetScale has enhanced its Insights query tagging feature for Postgres databases as part of the Traffic Control launch. Tags are now present in aggregated...
og:url: https://daily.dev/posts/view-the-complete-distribution-of-tags-assigned-to-a-query-pattern-search-queries-by-tag-and-see-a-unqpiak3o
og:image: https://api.daily.dev/og/posts/UnQpiaK3O.png
og:image:alt: View the complete distribution of tags assigned to a query pattern, search queries by tag, and see a per-tag breakdown of database-level statistics
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# View the complete distribution of tags assigned to a query pattern, search queries by tag, and see a per-tag breakdown of database-level statistics

**[PlanetScale](https://daily.dev/sources/planetscale)** · [@megangrant333](https://daily.dev/megangrant333) · 1 min read · 1 upvotes · 0 comments

## Summary

PlanetScale has enhanced its Insights query tagging feature for Postgres databases as part of the Traffic Control launch. Tags are now present in aggregated query data rather than only on individual notable query logs. This enables viewing the complete distribution of tags assigned to a query pattern, searching queries by tag, and seeing per-tag breakdowns of database-level statistics. The post covers both a feature overview and implementation details.

## Content

As part of our [Traffic Control launch](https://planetscale.com/blog/introducing-database-traffic-control), we made enhancements to the Insights query tagging feature for Postgres databases. Insights has supported query tags for some time, but they were previously only attached as metadata on individual notable query logs. With this release, tags are now present in aggregated query data, which enables powerful new capabilities. It's now possible to view the complete distribution of tags assigned to a query pattern, search queries by tag, and see a per-tag breakdown of database-level statistics. This blog post gives an overview of the feature, and digs into the details of how we implemented it.

Read more here: [https://dev.to/planetscale/enhanced-tagging-in-postgres-query-insights-5ae0](https://dev.to/planetscale/enhanced-tagging-in-postgres-query-insights-5ae0)

## Similar posts on daily.dev

- [Introducing Postgres Query Insights in ClickHouse Cloud](https://daily.dev/posts/introducing-postgres-query-insights-in-clickhouse-cloud-yy9pc9sbl) · ClickHouse · 5 upvotes · 0 comments
- [Granular Usage Attribution for dbt Pipelines with Query Tags](https://daily.dev/posts/granular-usage-attribution-for-dbt-pipelines-with-query-tags-v07otebq5) · databricks · 0 upvotes · 0 comments
- [Keeping a Postgres queue healthy — PlanetScale](https://daily.dev/posts/keeping-a-postgres-queue-healthy-planetscale-h5pvjk1vk) · Hacker News · 0 upvotes · 0 comments
- [Using CloudWatch Database Insights to troubleshoot query performance from calling services](https://daily.dev/posts/using-cloudwatch-database-insights-to-troubleshoot-query-performance-from-calling-services-7te5whq9n) · AWS Database Blog · 1 upvotes · 0 comments
- [MotherDuck Integrates with PlanetScale Postgres](https://daily.dev/posts/motherduck-integrates-with-planetscale-postgres-8evqdolzf) · MotherDuck · 1 upvotes · 0 comments

---

Tags: [#postgresql](https://daily.dev/tags/postgresql), [#planetscale](https://daily.dev/tags/planetscale)

[View this post on daily.dev](https://daily.dev/posts/view-the-complete-distribution-of-tags-assigned-to-a-query-pattern-search-queries-by-tag-and-see-a-unqpiak3o)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/view-the-complete-distribution-of-tags-assigned-to-a-query-pattern-search-queries-by-tag-and-see-a-unqpiak3o","headline":"View the complete distribution of tags assigned to a query pattern, search queries by tag, and see a per-tag breakdown of database-level statistics","text":"PlanetScale has enhanced its Insights query tagging feature for Postgres databases as part of the Traffic Control launch. Tags are now present in aggregated query data rather than only on individual notable query logs. This enables viewing the complete distribution of tags assigned to a query pattern, searching queries by tag, and seeing per-tag breakdowns of database-level statistics. The post covers both a feature overview and implementation details.","url":"https://daily.dev/posts/view-the-complete-distribution-of-tags-assigned-to-a-query-pattern-search-queries-by-tag-and-see-a-unqpiak3o","datePublished":"2026-04-20T16:17:34.225Z","dateModified":"2026-04-20T16:17:47.755Z","author":{"@type":"Person","name":"Megan Grant","url":"https://daily.dev/megangrant333","image":"https://media.daily.dev/image/upload/s--Lr7rAjFs--/f_auto/v1774281301/avatars/avatar_jKDgMhambpC8kmiwDHUJV?_a=BAMAMiWQ0","description":"Marketing Operations Manager at PlanetScale","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":180}},"image":"https://media.daily.dev/image/upload/s--pkAJWVyz--/f_auto/v1776701854/posts/UnQpiaK3O?_a=BAMAMiWQ0","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"isPartOf":{"@type":"WebPage","url":"https://daily.dev/squads/planetscale","name":"PlanetScale"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"PlanetScale","item":"https://daily.dev/squads/planetscale"},{"@type":"ListItem","position":3,"name":"View the complete distribution of tags assigned to a query pattern, search queries by tag, and see a per-tag breakdown of database-level statistics"}]}
```

