The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Scopes extensions to a new scheam
Paul Copplestone9a7998972927
diff --git a/web/docs/guides/database/extensions/http.mdx b/web/docs/guides/database/extensions/http.mdxindex 6c0ac0ab3ca..272f882530f 100644--- a/web/docs/guides/database/extensions/http.mdx+++ b/web/docs/guides/database/extensions/http.mdx@@ -52,16 +52,18 @@ values={[```sql-- Example: enable the "http" extension-create extenstion http;+create extenstion http with schema extensions;-- Example: disable the "http" extension-drop extenstion http;+drop extenstion if exists http;```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 practise to create the extension within a separate schema (like `extensions`) to keep your database clean.+</TabItem></Tabs>diff --git a/web/docs/guides/database/extensions/pgtap.mdx b/web/docs/guides/database/extensions/pgtap.mdxindex 6a2a4580fa4..22329e67001 100644--- a/web/docs/guides/database/extensions/pgtap.mdx+++ b/web/docs/guides/database/extensions/pgtap.mdx@@ -52,16 +52,18 @@ values={[```sql-- Enable the "pgtap" extension-create extension pgtap;+create extension pgtap with schema extensions;-- Disable the "pgtap" extension-drop extension pgtap;+drop extension if exists pgtap;```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 practise to create the extension within a separate schema (like `extensions`) to keep your database clean.+</TabItem></Tabs>diff --git a/web/docs/guides/database/extensions/plv8.mdx b/web/docs/guides/database/extensions/plv8.mdxindex 42146e005ab..0a2f2a10a32 100644--- a/web/docs/guides/database/extensions/plv8.mdx+++ b/web/docs/guides/database/extensions/plv8.mdx@@ -46,16 +46,18 @@ values={[```sql-- Example: enable the "plv8" extension-create extension plv8;+create extension plv8 with schema extensions;-- Example: disable the "plv8" extension-drop extension plv8;+drop extension if exists plv8;```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 practise to create the extension within a separate schema (like `extensions`) to keep your database clean.+</TabItem></Tabs>diff --git a/web/docs/guides/database/extensions/uuid-ossp.mdx b/web/docs/guides/database/extensions/uuid-ossp.mdxindex f5561cd803b..88cf9617bd8 100644--- a/web/docs/guides/database/extensions/uuid-ossp.mdx+++ b/web/docs/guides/database/extensions/uuid-ossp.mdx@@ -41,23 +41,25 @@ values={[```sql-- Example: enable the "uuid-ossp" extension-create extension "uuid-ossp";+create extension "uuid-ossp" with schema extensions;-- Example: disable the "uuid-ossp" extension-drop extension "uuid-ossp";+drop extension if exists "uuid-ossp";```Even though the SQL code is `create extension`, this is the equivelent of "enabling the extension".To disable an extension you can call `drop extension`.+It's good practise to create the extension within a separate schema (like `extensions`) to keep your database clean.+</TabItem></Tabs>-## Available functions+### The `uuid` type-There are two functions available:+Once the extension is enabled, you now have access to a `uuid` type.### `uuid_generate_v1()`diff --git a/web/docs/guides/database/full-text-search.mdx b/web/docs/guides/database/full-text-search.mdxindex c6f6224d610..d93122317b7 100644--- a/web/docs/guides/database/full-text-search.mdx+++ b/web/docs/guides/database/full-text-search.mdx@@ -9,12 +9,12 @@ import Tabs from '@theme/Tabs';import TabItem from '@theme/TabItem';-Postgres has built-in functions to handle `Full Text Search` queries. This allows is very similar to a "search engine" within Postgres.+Postgres has built-in functions to handle `Full Text Search` queries. This is like a "search engine" within Postgres.## Preparation-For this guide we'll use the following data:+For this guide we'll use the following example data:<Tabs@@ -105,7 +105,7 @@ where to_tsvector(name) @@ to_tsquery('Harry');## Basic Full Text Queries-### Search a single column for a single word+### Search a single columnTo find all `books` where the `description` contain the word `big`:@@ -138,7 +138,7 @@ where</TabItem></Tabs>-### Search multiple columns for a single word+### Search multiple columnsTo find all `books` where `description` or `title` contain the word `little`: