The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Apply suggestions from code review
dng19e332bb52fa
diff --git a/apps/docs/pages/guides/resources/postgres/dropping-all-tables-in-schema.mdx b/apps/docs/pages/guides/resources/postgres/dropping-all-tables-in-schema.mdxindex e3d9645f763..602db8f9822 100644--- a/apps/docs/pages/guides/resources/postgres/dropping-all-tables-in-schema.mdx+++ b/apps/docs/pages/guides/resources/postgres/dropping-all-tables-in-schema.mdx@@ -6,13 +6,12 @@ export const meta = {footerHelpType: 'postgres',}-If you need to drop all tables in a given schema, you can execute the query below.+Execute the following query to drop all tables in a given schema.+Replace `my-schema-name` with the name of your schema. In Supabase, the default schema is `public`.-Make sure to replace `my-schema-name` with the name of your schema. In Supabase, the default schema is `public`.+<Admonition type="caution">-<Admonition type="warning">--This will delete all tables and their associated data. Ensure you have recent [backups](/docs/guides/platform/backups) before proceeding.+This deletes all tables and their associated data. Ensure you have a recent [backup](/docs/guides/platform/backups) before proceeding.</Admonition>@@ -26,9 +25,9 @@ beginend $$;```-This snippet works by first listing out all the tables in the given schema. And then executing a `drop table` for each, hence the `for... loop`.+This query works by listing out all the tables in the given schema and then executing a `drop table` for each (hence the `for... loop`).-You can run this query from the [SQL editor](https://app.supabase.com/project/_/sql) inside the Supabase dashboard, or via psql if [connecting directly via the command line](/docs/guides/database/connecting-to-postgres#direct-connections).+You can run this query using the [SQL Editor](https://app.supabase.com/project/_/sql) in the Supabase Dashboard, or via `psql` if you're [connecting directly to the database](/docs/guides/database/connecting-to-postgres#direct-connections).export const Page = ({ children }) => <Layout meta={meta} children={children} />diff --git a/apps/docs/pages/guides/resources/postgres/first-row-in-group.mdx b/apps/docs/pages/guides/resources/postgres/first-row-in-group.mdxindex 8db101398c4..88c54af3430 100644--- a/apps/docs/pages/guides/resources/postgres/first-row-in-group.mdx+++ b/apps/docs/pages/guides/resources/postgres/first-row-in-group.mdx@@ -25,7 +25,7 @@ The expected output we want is:| 3 | Brighton | 34 || 2 | Liverpool | 84 |-From the [SQL editor](https://app.supabase.com/project/_/sql) you can run a query like:+From the [SQL Editor](https://app.supabase.com/project/_/sql), you can run a query like:```sqlselect distinct@@ -40,9 +40,11 @@ order BYteam;```-The important bits here are the `desc` that we put on the ordering of `points` which ranks the points in descending value (starting with the highest). And the `distinct` keyword that tells Postgres to only return a single row per team.+The important bits here are:+- The `desc` keyword to order the `points` from highest to lowest.+- The `distinct` keyword that tells Postgres to only return a single row per team.-This query can also be executed via psql or any other query editor if you prefer to [connect directly to the database](/docs/guides/database/connecting-to-postgres#direct-connections).+This query can also be executed via `psql` or any other query editor if you prefer to [connect directly to the database](/docs/guides/database/connecting-to-postgres#direct-connections).export const Page = ({ children }) => <Layout meta={meta} children={children} />diff --git a/apps/docs/pages/guides/resources/postgres/which-version-of-postgres.mdx b/apps/docs/pages/guides/resources/postgres/which-version-of-postgres.mdxindex db254addb3b..29bea3ab32b 100644--- a/apps/docs/pages/guides/resources/postgres/which-version-of-postgres.mdx+++ b/apps/docs/pages/guides/resources/postgres/which-version-of-postgres.mdx@@ -6,9 +6,9 @@ export const meta = {footerHelpType: 'postgres',}-It's important to know which version of PostgreSQL you are running, since each major version has different features and may cause breaking changes. If [upgrading](https://www.postgresql.org/docs/current/pgupgrade.html) or downgrading a major Postgres version, you may need to update your schema.+It's important to know which version of PostgreSQL you are running as each major version has different features and may cause breaking changes. You may also need to update your schema when [upgrading](https://www.postgresql.org/docs/current/pgupgrade.html) or downgrading to a major Postgres version.-From the [SQL editor](https://app.supabase.com/project/_/sql) you can run the simple query:+Run the following query using the [SQL Editor](https://app.supabase.com/project/_/sql) in the Supabase Dashboard:```sqlselect@@ -21,7 +21,7 @@ Which should return something like:PostgreSQL 15.1 on aarch64-unknown-linux-gnu, compiled by gcc (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0, 64-bit```-This query can also be executed via psql or any other query editor if you prefer to [connect directly to the database](/docs/guides/database/connecting-to-postgres#direct-connections).+This query can also be executed via `psql` or any other query editor if you prefer to [connect directly to the database](/docs/guides/database/connecting-to-postgres#direct-connections).export const Page = ({ children }) => <Layout meta={meta} children={children} />