Remove redundant client_min_messages handling from install script#4
Remove redundant client_min_messages handling from install script#4jnasbyupgrade wants to merge 1 commit into
Conversation
90a309e to
e71c470
Compare
|
@claude please review this PR. |
|
Claude finished @jnasbyupgrade's task in 5m 38s —— View job Review: Don't clobber caller's client_min_messages on install
Overall the approach is sound: save the caller's 🔴 Breaks the extension's own declared/tested PostgreSQL 9.4 support
c_levels CONSTANT text[] := ARRAY[
'debug5', 'debug4', 'debug3', 'debug2', 'debug1'
, 'log', 'notice', 'warning', 'error'
];
...
IF pg_catalog.array_position(c_levels, pg_catalog.lower(v_current))
< pg_catalog.array_position(c_levels, 'warning')
A 9.4-compatible replacement avoids needing ordering/array lookups at all, e.g.: IF pg_catalog.lower(v_current) IN
('debug5','debug4','debug3','debug2','debug1','log','notice')
THEN
SET client_min_messages = warning;
END IF;🟡 Minor:
|
e71c470 to
98b8b9c
Compare
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
CREATE EXTENSION already forces client_min_messages to at least WARNING for the install script (only raising it, so a stricter caller is respected) and restores the caller's value afterward -- it has done so since extensions were introduced in 9.1. The script's own setting was therefore redundant, and being blind it lowered a stricter caller's level during install. Drop it. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
98b8b9c to
06cc753
Compare
|
@claude re-review pls |
|
Claude finished @jnasbyupgrade's task in 1m 34s —— View job Re-review: Remove redundant
|
CREATE EXTENSION already raises client_min_messages to WARNING for the install script (only-raising, so a stricter caller is respected) and restores it afterward — so the script's own setting was redundant, and being blind it actually lowered a stricter caller's level during install. Remove it.