• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / supautils
89%

Build:
DEFAULT BRANCH: master
Repo Added 12 Feb 2025 01:32AM UTC
Token urZPyGzXpRItjN7NkzSSsLnTjPCCflnkT regen
Build 174 Last
Files 10
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH master
branch: SELECT
CHANGE BRANCH
x
Sync Branches
  • No branch selected
  • 140-bk
  • 18beta1
  • add-hint
  • bench
  • bs/clang-format
  • bs/release-deb
  • cache-lookup
  • cassert
  • chore/bump-xpg
  • chore/ci
  • chore/ci-again
  • chore/ci-bundling
  • chore/clang-format-macos-compat
  • chore/macos-ci-pg-versions
  • chore/readme-update-commands
  • chore/upload-tar-xz
  • compat16
  • cov
  • docs/supautils-prefix
  • etienne/block-copy-program
  • event_trigger_function_owner_check
  • evtrig-test
  • evtrigs-cont
  • fix-docs
  • fix-pgxs
  • fix/handle-exceptions-during-su-switch
  • fix/redefine-disable-program
  • fix/run-custom-scripts-on-non-privileged-extensions
  • immutable-check-constraint
  • log-detail
  • log-skipped
  • macos
  • make_superuser_boolean
  • master
  • module-magic-ext
  • nickb/fix_supautils_hook
  • nxpg-v2
  • pgmq
  • ref-alterowner
  • ref-extensions
  • ref1
  • revert-disable-copy
  • style-fix-macos
  • superevtrigs
  • test/custom-scripts-non-privileged-ext
  • upgrade-github-actions-node24
  • upgrade-github-actions-node24-general

12 Mar 2026 08:33PM UTC coverage: 88.656% (+0.2%) from 88.441%
23022592194

push

github

web-flow
feat: add hint when GRANT privilege is missing (#178)

Whenever we hit an ERRCODE_INSUFFICIENT_PRIVILEGE, we give a hint for
the precise privilege missing for the current role.

Simple SELECT:

```sql
select from hint_target;
ERROR:  permission denied for table hint_target
HINT:  Grant the required privileges to the current role with: GRANT SELECT ON public.hint_target TO hint_role;
```

If multiple privileges are missing on an upsert:

```sql
insert into hint_target(id)
values (1)
on conflict (id) do update set id = excluded.id;
ERROR:  permission denied for table hint_target
HINT:  Grant the required privileges to the current role with: GRANT SELECT, INSERT, UPDATE ON public.hint_target TO hint_role;
```

NOTES:

- This is done by adding an ExecutorStart_hook which only purpose is to
  catch the ERRCODE_INSUFFICIENT_PRIVILEGE error and override the empty
  privilege.
- Also adds a loadtest for a simple select to ensure the perf loss is not great (the impact is around 1-2%, mostly due to the `is_hint_role` check)
- Hints for views under pg 18 are not working and left as TODO, hints for views on all the previous versions work normally

92 of 101 new or added lines in 2 files covered. (91.09%)

1 existing line in 1 file now uncovered.

1102 of 1243 relevant lines covered (88.66%)

31.94 hits per line

Relevant lines Covered
Build:
Build:
1243 RELEVANT LINES 1102 COVERED LINES
31.94 HITS PER LINE
Source Files on master
  • Tree
  • List 10
  • Changed 2
  • Source Changed 2
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
23022592194 master feat: add hint when GRANT privilege is missing (#178) Whenever we hit an ERRCODE_INSUFFICIENT_PRIVILEGE, we give a hint for the precise privilege missing for the current role. Simple SELECT: ```sql select from hint_target; ERROR: permission de... push 12 Mar 2026 08:34PM UTC web-flow github
88.66
23021968158 add-hint Merge 24f032c78 into bc97e7d98 Pull #178 12 Mar 2026 08:18PM UTC web-flow github
88.66
22972735967 add-hint Merge 180c358f1 into bc97e7d98 Pull #178 11 Mar 2026 08:23PM UTC web-flow github
88.66
22926694902 add-hint Merge ef6cb9830 into bc97e7d98 Pull #178 10 Mar 2026 10:14PM UTC web-flow github
88.65
22926170422 add-hint Merge 43feaba67 into bc97e7d98 Pull #178 10 Mar 2026 09:59PM UTC web-flow github
88.66
22926120900 add-hint Merge aaadede91 into bc97e7d98 Pull #178 10 Mar 2026 09:57PM UTC web-flow github
88.66
22924915758 add-hint Merge 70e7d8c5a into bc97e7d98 Pull #178 10 Mar 2026 09:23PM UTC web-flow github
88.66
22924360461 add-hint Merge bce50c2c6 into bc97e7d98 Pull #178 10 Mar 2026 09:08PM UTC web-flow github
88.66
22923614341 add-hint Merge f85551358 into bc97e7d98 Pull #178 10 Mar 2026 08:49PM UTC web-flow github
88.66
22916363565 add-hint Merge 6adf34660 into bc97e7d98 Pull #178 10 Mar 2026 05:48PM UTC web-flow github
88.63
See All Builds (174)
  • Settings
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc