Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

make review dog happy

Oliver Riceb30d2a93aa25
diff --git a/apps/docs/pages/guides/database/extensions/hypopg.mdx b/apps/docs/pages/guides/database/extensions/hypopg.mdx
index 14c9c15050b..18688e276e4 100644
--- a/apps/docs/pages/guides/database/extensions/hypopg.mdx
+++ b/apps/docs/pages/guides/database/extensions/hypopg.mdx
@@ -10,7 +10,6 @@ export const meta = {
The motivation for HypoPG is to allow users to quickly search for an index to improve a slow query without consuming server resources or waiting for them to build.
-
## Enable the extension
<Tabs
diff --git a/apps/docs/pages/guides/database/extensions/pg-safeupdate.mdx b/apps/docs/pages/guides/database/extensions/pg-safeupdate.mdx
index 05ecd7781bd..33773977b55 100644
--- a/apps/docs/pages/guides/database/extensions/pg-safeupdate.mdx
+++ b/apps/docs/pages/guides/database/extensions/pg-safeupdate.mdx
@@ -6,7 +6,7 @@ export const meta = {
description: 'Requires a where clause for update and delete',
}
-[pg-safeupdate](https://github.com/eradman/pg-safeupdate) is a PostgreSQL extension designed to prevent users from accidentally updating or deleting too many records in a single statement by requiring a "where" clause in all update and delete statements.
+[pg-safeupdate](https://github.com/eradman/pg-safeupdate) is a PostgreSQL extension designed to prevent users from accidentally updating or deleting too many records in a single statement by requiring a "where" clause in all update and delete statements.
The `pg-safeupdate` extension is a useful tool for protecting data integrity and preventing accidental data loss. Without it, a user could accidentally execute an update or delete statement that affects all records in a table. With `pg-safeupdate`, users are required to be more deliberate in their update and delete statements, which reduces the risk of significant error.
diff --git a/apps/docs/pages/guides/database/extensions/pg_graphql.mdx b/apps/docs/pages/guides/database/extensions/pg_graphql.mdx
index fefd01ccae4..a63be68c164 100644
--- a/apps/docs/pages/guides/database/extensions/pg_graphql.mdx
+++ b/apps/docs/pages/guides/database/extensions/pg_graphql.mdx
@@ -14,7 +14,6 @@ The `pg_graphql` resolve method is designed to interop with [PostgREST](https://
For more information about how the SQL schema is reflected into a GraphQL schema, see the [pg_graphql API docs](https://supabase.github.io/pg_graphql/api/).
-
## Enable the extension
<Tabs
diff --git a/apps/docs/pages/guides/database/extensions/pg_stat_monitor.mdx b/apps/docs/pages/guides/database/extensions/pg_stat_monitor.mdx
index a162847f5c8..4c1363b83b9 100644
--- a/apps/docs/pages/guides/database/extensions/pg_stat_monitor.mdx
+++ b/apps/docs/pages/guides/database/extensions/pg_stat_monitor.mdx
@@ -7,9 +7,10 @@ export const meta = {
}
[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
+- **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).
diff --git a/apps/docs/pages/guides/database/extensions/pgaudit.mdx b/apps/docs/pages/guides/database/extensions/pgaudit.mdx
index 7dde02b6312..0352fb6d131 100644
--- a/apps/docs/pages/guides/database/extensions/pgaudit.mdx
+++ b/apps/docs/pages/guides/database/extensions/pgaudit.mdx
@@ -42,7 +42,6 @@ To disable an extension you can call `drop extension`.
</TabPanel>
</Tabs>
-
## Settings
The `pgaudit.log` setting controls which statements to log. Available values include:
diff --git a/apps/docs/pages/guides/database/extensions/pgjwt.mdx b/apps/docs/pages/guides/database/extensions/pgjwt.mdx
index 548925f8ad8..77c8bcc8dea 100644
--- a/apps/docs/pages/guides/database/extensions/pgjwt.mdx
+++ b/apps/docs/pages/guides/database/extensions/pgjwt.mdx
@@ -8,7 +8,6 @@ export const meta = {
The [pgjwt](https://github.com/michelp/pgjwt) (PostgreSQL JSON Web Token) extension allows you to create and parse [JSON Web Tokens (JWTs)](https://en.wikipedia.org/wiki/JSON_Web_Token) within a PostgreSQL database. JWTs are commonly used for authentication and authorization in web applications and services.
-
## Enable the extension
<Tabs
@@ -45,16 +44,16 @@ It's good practice to create the extension within a separate schema (like `exten
## API
-- [`sign(payload json, secret text, algorithm text default 'HSA256')`](https://github.com/michelp/pgjwt#usage): Signs a JWT containng *payload* with *secret* using *algorithm*.
-- [`verify(token text, secret text, algorithm text default 'HSA256')`](https://github.com/michelp/pgjwt#usage): Decodes a JWT *token* that was signed with *secret* using *algorithm*.
+- [`sign(payload json, secret text, algorithm text default 'HSA256')`](https://github.com/michelp/pgjwt#usage): Signs a JWT containng _payload_ with _secret_ using _algorithm_.
+- [`verify(token text, secret text, algorithm text default 'HSA256')`](https://github.com/michelp/pgjwt#usage): Decodes a JWT _token_ that was signed with _secret_ using _algorithm_.
Where:
+
- `payload` is an encrypted JWT represented as a string.
- `secret` is the private/secret passcode which is used to sign the JWT and verify its integrity.
- `algorithm` is the method used to sign the JWT using the secret.
- `token` is an encrypted JWT represented as a string.
-
## Usage
Once the extension is installed, you can use its functions to create and parse JWTs. Here's an example of how you can use the `sign` function to create a JWT:
@@ -85,7 +84,6 @@ The pgjwt_encode function returns a string that represents the JWT, which can th
To parse a JWT and extract its claims, you can use the `verify` function. Here's an example:
-
{/* prettier-ignore */}
```sql
select
diff --git a/apps/docs/pages/guides/database/extensions/pgrouting.mdx b/apps/docs/pages/guides/database/extensions/pgrouting.mdx
index 88e6ddff5fc..73a047fb362 100644
--- a/apps/docs/pages/guides/database/extensions/pgrouting.mdx
+++ b/apps/docs/pages/guides/database/extensions/pgrouting.mdx
@@ -12,9 +12,9 @@ The core functionality of `pgRouting` is a set of path finding algorithms includ
- All Pairs Shortest Path, Johnson’s Algorithm
- All Pairs Shortest Path, Floyd-Warshall Algorithm
-- Shortest Path A*
+- Shortest Path A\*
- Bi-directional Dijkstra Shortest Path
-- Bi-directional A* Shortest Path
+- Bi-directional A\* Shortest Path
- Shortest Path Dijkstra
- Driving Distance
- K-Shortest Path, Multiple Alternative Paths
@@ -22,7 +22,6 @@ The core functionality of `pgRouting` is a set of path finding algorithms includ
- Traveling Sales Person
- Turn Restriction Shortest Path (TRSP)
-
## Enable the extension
<Tabs
@@ -61,7 +60,8 @@ As an example, we'll solve the [traveling salesman probelem](https://en.wikipedi
A summary of the traveling salesman problem is, given a set of city coordinates, solve for a path that goes through each city and minimizes the total distance traveled.
-First we populate a table with some X, Y coordiantes
+First we populate a table with some X, Y coordinates
+
{/* prettier-ignore */}
```sql
create table wi29 (
diff --git a/apps/docs/pages/guides/database/extensions/pgsodium.mdx b/apps/docs/pages/guides/database/extensions/pgsodium.mdx
index 1f8f13d772a..f11c5fc3ec8 100644
--- a/apps/docs/pages/guides/database/extensions/pgsodium.mdx
+++ b/apps/docs/pages/guides/database/extensions/pgsodium.mdx
@@ -7,6 +7,7 @@ export const meta = {
}
[pgsodium](https://github.com/michelp/pgsodium) is a PostgreSQL extension which provides SQL access to libsodium's high-level cryptographic algorithms. It also enables some Postgres specific features including:
+
- [Server Key Management](https://github.com/michelp/pgsodium#server-key-management)
- [Transparent Column Encryption](https://github.com/michelp/pgsodium#transparent-column-encryption)
@@ -39,7 +40,6 @@ drop extension if exists pgsodium;
</TabPanel>
</Tabs>
-
## Resources
- Official [`pgsodium` documentation](https://github.com/michelp/pgsodium)
diff --git a/apps/docs/pages/guides/database/extensions/timescaledb.mdx b/apps/docs/pages/guides/database/extensions/timescaledb.mdx
index e00228b0288..265e8662ad4 100644
--- a/apps/docs/pages/guides/database/extensions/timescaledb.mdx
+++ b/apps/docs/pages/guides/database/extensions/timescaledb.mdx
@@ -10,7 +10,6 @@ export const meta = {
`timescaledb` uses a time-series-aware storage model and indexing techniques to improve performance of PostgreSQL in working with time-series data. The extension divides data into chunks based on time intervals, allowing it to scale efficiently, especially for large data sets. The data is then compressed, optimized for write-heavy workloads, and partitioned for parallel processing. `timescaledb` also includes a set of functions, operators, and indexes that work with time-series data to reduce query times, and make data easier to work with.
-
## Enable the extension
<Tabs