Skip to content

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

Update pgnet alter settings doc (#45225)

Kostas Botsas9f33190914a9
diff --git a/apps/docs/content/guides/database/extensions/pg_net.mdx b/apps/docs/content/guides/database/extensions/pg_net.mdx
index 2e3d54a6547..29e4e47e703 100644
--- a/apps/docs/content/guides/database/extensions/pg_net.mdx
+++ b/apps/docs/content/guides/database/extensions/pg_net.mdx
@@ -329,16 +329,22 @@ where "name" like 'pg_net%';
### Alter settings
-Change variables:
+You must change the `pg_net` settings at the system level.
+
+<Admonition type="note">
+
+Changing these settings requires superuser privileges. Contact Support to have the required permission granted for the parameter you want to change, e.g.:
```sql
-alter role "postgres" set pg_net.ttl to '24 hours';
-alter role "postgres" set pg_net.batch_size to 500;
+grant alter system on parameter pg_net.ttl to postgres;
```
-Then reload the settings and restart the `pg_net` background worker with:
+</Admonition>
+
+Once the privilege is assigned, apply the setting at the system level and restart the background worker:
```sql
+alter system set pg_net.ttl to '24 hours';
select net.worker_restart();
```