Skip to content

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

docs: timescaledb snippet (#35509)

hallidayod7c1666ea289
diff --git a/apps/docs/content/guides/database/extensions/timescaledb.mdx b/apps/docs/content/guides/database/extensions/timescaledb.mdx
index 268a5006c80..fa75a8d0c68 100644
--- a/apps/docs/content/guides/database/extensions/timescaledb.mdx
+++ b/apps/docs/content/guides/database/extensions/timescaledb.mdx
@@ -35,7 +35,7 @@ Supabase projects come with [TimescaleDB Apache 2 Edition](https://docs.timescal
{/* prettier-ignore */}
```sql
-- Enable the "timescaledb" extension
-create extension timescaledb;
+create extension timescaledb with schema extensions;
-- Disable the "timescaledb" extension
drop extension if exists timescaledb;
@@ -44,6 +44,10 @@ drop extension if exists timescaledb;
</TabPanel>
</Tabs>
+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 your `public` schema clean.
+
## Usage
To demonstrate how `timescaledb` works, let's consider a simple example where we have a table that stores temperature data from different sensors. We will create a table named "temperatures" and store data for two sensors.