You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/docs/content/guides/database/extensions/pg_net.mdx
+5-12Lines changed: 5 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -309,9 +309,9 @@ order by "created" desc;
309
309
310
310
## Configuration
311
311
312
-
<Admonitiontype="note"label="Only Self-Hosted Deployments can Modify Configuration Variables">
312
+
<Admonitiontype="note"label="Must be on pg_net v0.10.0 or above to reconfigure ">
313
313
314
-
See the [self-hosting docs](/docs/guides/hosting/overview#configuration) for self-hosting instructions.
314
+
Supabase supports reconfiguring pg*net starting from v0.10.0+. For the latest release, initiate a postgres upgrade in the [Infrastructure Settings](https://supabase.com/dashboard/project/*/settings/infrastructure).
315
315
316
316
</Admonition>
317
317
@@ -329,18 +329,11 @@ where "name" like 'pg_net%';
329
329
330
330
### Alter settings
331
331
332
-
Note, that doing `ALTER SYSTEM` requires SUPERUSER but on PostgreSQL >= 15, you can do:
332
+
Change variables:
333
333
334
334
```sql
335
-
grant alter system on parameter pg_net.ttl to <role>;
336
-
grant alter system on parameter pg_net.batch_size to <role>;
337
-
```
338
-
339
-
Then variables can be changed:
340
-
341
-
```sql
342
-
alter system setpg_net.ttl to '1 hour'
343
-
alter system setpg_net.batch_size to 500;
335
+
alter role "postgres"setpg_net.ttl to '24 hour';
336
+
alter role "postgres"setpg_net.batch_size to 500;
344
337
```
345
338
346
339
Then reload the settings and restart the `pg_net` background worker with:
0 commit comments