Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix enable_job_execution_logging GUC context #7131

Conversation

fabriziomello
Copy link
Contributor

@fabriziomello fabriziomello commented Jul 16, 2024

In #6767 we allowed users to track job execution history by turning on the new GUC timescaledb.enable_job_execution_logging.

Unfortunately we defined this GUC as PGC_USERSET context but the right context should be PGC_SIGHUP since it won't work when setting at session and/or database level so we should restrict it to be used only by ALTER SYSTEM SET or changing the config files.

Disable-check: force-changelog-file

@fabriziomello fabriziomello added bug bgw The background worker subsystem, including the scheduler labels Jul 16, 2024
@fabriziomello fabriziomello self-assigned this Jul 16, 2024
@fabriziomello fabriziomello added this to the TimescaleDB 2.16.0 milestone Jul 16, 2024
Copy link

codecov bot commented Jul 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.77%. Comparing base (59f50f2) to head (3b56df8).
Report is 256 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7131      +/-   ##
==========================================
+ Coverage   80.06%   81.77%   +1.70%     
==========================================
  Files         190      203      +13     
  Lines       37181    38035     +854     
  Branches     9450     9872     +422     
==========================================
+ Hits        29770    31102    +1332     
+ Misses       2997     2969      -28     
+ Partials     4414     3964     -450     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@fabriziomello fabriziomello enabled auto-merge (rebase) July 16, 2024 21:38
In timescale#6767 we allowed users to track job execution history by turning on
the new GUC `timescaledb.enable_job_execution_logging`.

Unfortunately we defined this GUC as PGC_USERSET context but the right
context should be PGC_SIGHUP since it won't work when setting at session
and/or database level so we should restrict it to be used only by `ALTER
SYSTEM SET` or changing the config files.
@fabriziomello fabriziomello force-pushed the fix_enable_job_execution_logging_guc_context branch from 49aeccb to 3b56df8 Compare July 17, 2024 20:56
@fabriziomello fabriziomello merged commit 6f5646c into timescale:main Jul 19, 2024
38 of 39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backported-2.15.x bgw The background worker subsystem, including the scheduler bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants