The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: temporarily hide pg_stat_monitor (#33475)
Bobbie Soedirgo95ccf25e6425
diff --git a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.tsindex 09c57917ca9..bc376b199c0 100644--- a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts+++ b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts@@ -1009,10 +1009,6 @@ export const database: NavMenuConstant = {name: 'pg_plan_filter: Restrict Total Cost',url: '/guides/database/extensions/pg_plan_filter',},- {- name: 'pg_stat_monitor: Extended Query Performance Monitoring',- url: '/guides/database/extensions/pg_stat_monitor',- },{name: 'postgres_fdw: query data from an external Postgres server',url: '/guides/database/extensions/postgres_fdw',diff --git a/apps/docs/content/guides/database/extensions/pg_stat_monitor.mdx b/apps/docs/content/guides/database/extensions/pg_stat_monitor.mdxdeleted file mode 100644index 015fd123142..00000000000--- a/apps/docs/content/guides/database/extensions/pg_stat_monitor.mdx+++ /dev/null@@ -1,84 +0,0 @@-----id: 'pg_stat_monitor'-title: 'pg_stat_monitor: Query Performance Monitoring'-description: 'Query performance monitoring for PostgreSQL'------[pg_stat_monitor](https://github.com/percona/pg_stat_monitor) is query performance monitoring tool that provides query execution statistics in a SQL view named `pg_stat_monitor`. It tracks a superset of statistics available in [`pg_stat_statements`](https://www.postgresql.org/docs/current/pgstatstatements.html). Some of the most useful features are:--- **Time Interval Grouping**: configurable time buckets to track query usage over time-- **Capture Parameters**: optionally track parameters passed into queries instead of generic placeholders e.g. `$1`-- **Query Plan**: store query plans used for execution--For more information on query optimization, check out the [query performance guide](/docs/guides/platform/performance#examining-query-performance).--## Enable the extension--<Tabs- scrollable- size="small"- type="underlined"- defaultActiveId="dashboard"- queryGroup="database-method"->-<TabPanel id="dashboard" label="Dashboard">--1. Go to the [Database](https://supabase.com/dashboard/project/_/database/tables) page in the Dashboard.-2. Click on **Extensions** in the sidebar.-3. Search for "pg_stat_monitor" and enable the extension.--</TabPanel>-<TabPanel id="sql" label="SQL">--{/* prettier-ignore */}-```sql--- Enable the "pg_stat_monitor" extension-create extension pg_stat_monitor with schema extensions;---- Disable the "pg_stat_monitor" extension-drop extension if exists pg_stat_monitor;-```--Even though the SQL code is `create extension`, this is the equivalent of "enabling the extension".-To disable an extension you can call `drop extension`.--It's good practice to create the extension within a separate schema (like `extensions`) to keep the `public` schema clean.--</TabPanel>-</Tabs>--## Views--{/* prettier-ignore */}-```sql-select * from extensions.pg_stat_monitor;-```--The following table shows a subset of available columns:--| Column Type | Description |-| ------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |-| `bucket` `bigint` | Data collection unit. The number shows what bucket in a chain a record belongs to |-| `bucket_start_time` `timestampz` | The start time of the bucket |-| `userid` `oid` (references `pg_authid.oid`) | OID of user who executed the statement |-| `dbid` `oid` (references `pg_database.oid`) | OID of database in which the statement was executed |-| `toplevel` `bool` | True if the query was executed as a top-level statement (always true if pg_stat_statements.track is set to top) |-| `client_ip` `inet` | The IP address of a client that ran the query |-| `queryid` `bigint` | Hash code to identify identical normalized queries. |-| `planid` `text` | An internally generated ID of a query plan |-| `query_plan` `text` | The sequence of steps used to execute a query. This parameter is only available when pgsm_enable_query_plan is enabled |-| `query` `text` | Text of a representative statement |-| `plans` `bigint` | Number of times the statement was planned (if pg_stat_statements.track_planning is enabled, otherwise zero) |-| `total_plan_time` `double precision` | Total time spent planning the statement, in milliseconds (if pg_stat_statements.track_planning is enabled, otherwise zero) |-| `min_plan_time` `double precision` | Minimum time spent planning the statement, in milliseconds (if pg_stat_statements.track_planning is enabled, otherwise zero) |--A full list of statistics is available in the [pg_stat_monitor docs](https://docs.percona.com/pg-stat-monitor/reference.html#postgresql-15).--## Functions--- [`pg_stat_monitor_reset()`](https://docs.percona.com/pg-stat-monitor/functions.html): Resets the statistics tracked by the `pg_stat_monitor` view and deletes all previous data.-- [`pg_stat_monitor_version()`](https://docs.percona.com/pg-stat-monitor/functions.html): Displays the version of the `pg_stat_monitor` extension.--## Resources--- Official [`pg_stat_monitor` documentation](https://github.com/percona/pg_stat_monitor)diff --git a/packages/shared-data/extensions.json b/packages/shared-data/extensions.jsonindex 5ea2d9fe7ae..24fd7000e9d 100644--- a/packages/shared-data/extensions.json+++ b/packages/shared-data/extensions.json@@ -287,15 +287,6 @@"product": null,"product_url": null},- {- "name": "pg_stat_monitor",- "comment": "The pg_stat_monitor is a PostgreSQL Query Performance Monitoring tool, based on PostgreSQL contrib module pg_stat_statements. pg_stat_monitor provides aggregated statistics, client information, plan details including plan, and histogram information.",- "tags": ["Utility"],- "link": "/guides/database/extensions/pg_stat_monitor",- "github_url": null,- "product": null,- "product_url": null- },{"name": "pg_stat_statements","comment": "track execution statistics of all SQL statements executed",