peloton icon indicating copy to clipboard operation
peloton copied to clipboard

Setting issues

Open ksaito7 opened this issue 6 years ago • 4 comments

  • 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.

ksaito7 avatar Jun 22 '18 15:06 ksaito7

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

tli2 avatar Jun 22 '18 16:06 tli2

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

ksaito7 avatar Jun 22 '18 17:06 ksaito7

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

pervazea avatar Jun 26 '18 13:06 pervazea

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.

ksaito7 avatar Jun 26 '18 13:06 ksaito7