Skip to content

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

docs: Fix Function level timeout SQL in timeout docs (#28886)

Peter95b3ed1789bd
diff --git a/apps/docs/content/guides/database/postgres/timeouts.mdx b/apps/docs/content/guides/database/postgres/timeouts.mdx
index ffc14b624f2..1b41032cbd4 100644
--- a/apps/docs/content/guides/database/postgres/timeouts.mdx
+++ b/apps/docs/content/guides/database/postgres/timeouts.mdx
@@ -42,10 +42,10 @@ This works with the Database REST API when called from the Supabase client libra
```sql
create or replace function myfunc()
-return void as $$
+returns void as $$
select pg_sleep(3); -- simulating some long-running process
$$
-language
+language sql
set statement_timeout TO '4s'; -- set custom timeout
```