cmu-db / peloton

The Self-Driving Database Management System
http://pelotondb.io
Apache License 2.0
2.03k stars 624 forks source link

Setting issues #1424

Open ksaito7 opened 6 years ago

ksaito7 commented 6 years ago

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:

tli2 commented 6 years ago

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

ksaito7 commented 6 years ago

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

pervazea commented 6 years ago

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

ksaito7 commented 6 years ago

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.