Skip to content

Commit 62dc3ce

Browse files
TheOtherBrian1Brian Brennglass
andauthored
updated pg_net docs | outlines configuration process (supabase#29984)
* updated pg_net docs | outlines configuration process * updated pg_net docs | outlines configuration process --------- Co-authored-by: Brian Brennglass <brian@Brians-MacBook-Pro.local>
1 parent 995331f commit 62dc3ce

File tree

1 file changed

+5
-12
lines changed
  • apps/docs/content/guides/database/extensions

1 file changed

+5
-12
lines changed

apps/docs/content/guides/database/extensions/pg_net.mdx

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -309,9 +309,9 @@ order by "created" desc;
309309

310310
## Configuration
311311

312-
<Admonition type="note" label="Only Self-Hosted Deployments can Modify Configuration Variables">
312+
<Admonition type="note" label="Must be on pg_net v0.10.0 or above to reconfigure ">
313313

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).
315315

316316
</Admonition>
317317

@@ -329,18 +329,11 @@ where "name" like 'pg_net%';
329329

330330
### Alter settings
331331

332-
Note, that doing `ALTER SYSTEM` requires SUPERUSER but on PostgreSQL >= 15, you can do:
332+
Change variables:
333333

334334
```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 set pg_net.ttl to '1 hour'
343-
alter system set pg_net.batch_size to 500;
335+
alter role "postgres" set pg_net.ttl to '24 hour';
336+
alter role "postgres" set pg_net.batch_size to 500;
344337
```
345338

346339
Then reload the settings and restart the `pg_net` background worker with:

0 commit comments

Comments
 (0)