Skip to content

Commit 1a193e5

Browse files
authored
docs: Add tip to reload postgrest for timeout changes if using API calls (supabase#28741)
Add tip for postgrest reload for timeout changes for client api calls
1 parent 9dda207 commit 1a193e5

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

apps/docs/content/guides/database/postgres/timeouts.mdx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,18 @@ Run the following query to change a role's timeout:
6868
alter role example_role set statement_timeout = '10min'; -- could also use seconds '10s'
6969
```
7070

71-
Unlike global settings, the result cannot be checked with `SHOW statement_timeout`. Instead, run:
71+
<Admonition type="tip">
72+
If you are changing the timeout for the Supabase Client API calls, you will need to reload
73+
postgREST to reflect the timeout changes by running the following script:
74+
75+
```sql
76+
NOTIFY pgrst, 'reload config';
77+
```
78+
79+
</Admonition>
80+
81+
Unlike global settings, the result cannot be checked with `SHOW
82+
statement_timeout`. Instead, run:
7283

7384
```sql
7485
select

0 commit comments

Comments
 (0)