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

supabase / supautils / 39607907370
95%

Build:
DEFAULT BRANCH: master
Ran 21 Oct 2026 01:26PM UTC
Jobs 1
Files 16
Run time 1min
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

21 Oct 2026 01:25PM UTC coverage: 94.647% (-0.03%) from 94.675%
39607907370

push

github

web-flow
feat: default extension install schema via search_path prepend (#251)

* feat: default extension install schema via search_path prepend

Add supautils.default_extension_install_schema. When set and the target
schema exists, CREATE EXTENSION runs with the schema prepended to
search_path and the original value restored right after the statement.
Native resolution keeps precedence: control-file pins, an explicit
SCHEMA clause and extensions_parameter_overrides all win. On error the
transactional GUC rollback restores search_path, so no PG_TRY is
needed. PGC_SUSET like restrict_extension_versions.

* save and restore search_path via a GUC nest level

Replaces the manual save/restore with NewGUCNestLevel +
set_config_option(GUC_ACTION_SAVE) + AtEOXact_GUC, the same pattern
core's execute_extension_script uses. This also restores the GUC's
scope, so a SET LOCAL search_path before create extension still
reverts at commit instead of being promoted to session level.

* test: default schema applies to cascaded extension installs

Extensions installed via create extension ... cascade are created by
core directly without going through process utility, so statement-level
mechanisms never see them. The search_path default still applies since
core's schema fallback reads the GUC during the whole statement.

* address review: drop unneeded volatile, void-cast set_config_option, reword GUC description

* test: cover search_path-manipulating custom scripts and tle dependency chains

* restore volatile with a comment: gcc -Wclobbered false positive errors under -Werror in CI

* test: exercise search_path manipulation via the global before-create script too

* test: the guc save/restore brackets only search_path, other script-set gucs keep their values

* docs: document default_extension_install_schema in the README

11 of 12 new or added lines in 2 files covered. (91.67%)

1220 of 1289 relevant lines covered (94.65%)

838.67 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
96.3
-0.85% src/extensions.c
Jobs
ID Job ID Ran Files Coverage
1 39607907370.1 21 Oct 2026 01:26PM UTC 16
94.65
GitHub Action Run
Source Files on build 39607907370
  • Tree
  • List 16
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #39607907370
  • 28e9ca1c on github
  • Prev Build on master (#39092961317)
  • Next Build on master (#39669811885)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc