Skip to content
This repository has been archived by the owner on Sep 27, 2019. It is now read-only.

Setting issues #1424

Open
ksaito7 opened this issue Jun 22, 2018 · 4 comments
Open

Setting issues #1424

ksaito7 opened this issue Jun 22, 2018 · 4 comments
Assignees

Comments

@ksaito7
Copy link
Contributor

ksaito7 commented Jun 22, 2018

  • SettingsManager controls transaction for SettingsCatalog. So checkpoints can’t recover settings due to nested transaction.
  • Can’t add new settings after Peloton booting. So we can’t implement SET command.
  • There is no update function in SettingsCatalog.
  • Why setting control functions are static?

So I propose setting refactoring for SettingManager and SettingsCatalog. Basically, I think setting user should control all functions through SettingManager, not static like other manager. Refactor points are below:

  • All setting values are controlled through SettingsManager (Set/Get value, Add setting)
  • A TransactionContext is passed through the function argument.
  • Implement update function in SettingsCatalog.
@tli2
Copy link
Contributor

tli2 commented Jun 22, 2018

There is a bunch of Set methods in SettingsManager. I don't know how they interact with transactions though.

@ksaito7
Copy link
Contributor Author

ksaito7 commented Jun 22, 2018

Set methods are just update methods for existed setting value using setting_id. These can not create new settings actually.

@pervazea
Copy link
Contributor

What new settings do you wish to add (after the system has booted)?

@ksaito7
Copy link
Contributor Author

ksaito7 commented Jun 26, 2018

I wanted users to be able to add original variables through SET command in psql or config files. But I found that Postgres can't set the original variables. I misunderstood that. Delete its line.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants