Commit ebea118
fix: Use jwt_private.current_database_id() instead of querying metaschema_public.database
The server middleware already sets jwt.claims.database_id in pgSettings,
so jwt_private.current_database_id() is a cheap function call vs the
previous approach of querying metaschema_public.database on every request.1 parent b677569 commit ebea118
1 file changed
Lines changed: 6 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
58 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
59 | 61 | | |
60 | 62 | | |
61 | 63 | | |
62 | | - | |
| 64 | + | |
63 | 65 | | |
64 | | - | |
65 | | - | |
| 66 | + | |
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
| |||
0 commit comments