You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We can say that the current configuration structure is the main_configuration, and the walinfo_configuration can be easily created (its attributes are stated previously in #508) and its purpose is obvious. What I can't understand is what is the purpose of common_configuration and subsequently, can neither know which attributes will need to be used inside it nor where it is expected to be used. So can you please explain to me the purpose of common_configuration?
I might need #508 to get merged first to start updating the parts of accessing configuration attributes based on this update that will be done because I implemented walinfo configurations there.
For example,
change this config->log_type = PGMONETA_LOGGING_TYPE_CONSOLE;
to this config->base->log_type = PGMONETA_LOGGING_TYPE_CONSOLE;
Activity
jesperpedersen commentedon Mar 18, 2025
@Mohab96 Can you take this ?
Mohab96 commentedon Mar 19, 2025
Yeah, of course. I was going to do this task eventually after finishing #508
Mohab96 commentedon Mar 19, 2025
What this issue aims to accomplish is detailed in this comment along with the four subsequent comments.
Just for documenting the process
Mohab96 commentedon Mar 19, 2025
We can say that the current
configurationstructure is themain_configuration, and thewalinfo_configurationcan be easily created (its attributes are stated previously in #508) and its purpose is obvious. What I can't understand is what is the purpose ofcommon_configurationand subsequently, can neither know which attributes will need to be used inside it nor where it is expected to be used. So can you please explain to me the purpose ofcommon_configuration?jesperpedersen commentedon Mar 19, 2025
@Mohab96
common_configurationis the basestructwhere all configuration properties that are shared between configurations are located.So, that would be all the logging configuration for now.
Of course
struct common_configurationhas to be first field in the otherstructs (main, walinfo, cli, ...)Mohab96 commentedon Mar 19, 2025
I might need #508 to get merged first to start updating the parts of accessing configuration attributes based on this update that will be done because I implemented
walinfoconfigurations there.For example,
change this
config->log_type = PGMONETA_LOGGING_TYPE_CONSOLE;to this
config->base->log_type = PGMONETA_LOGGING_TYPE_CONSOLE;what do you think?
jesperpedersen commentedon Mar 19, 2025
@Mohab96 Yes, you do all the common, main and walinfo changes in this patch, then you rebase and work on finishing #508
[pgmoneta#525] Splitted configuration into main, common and walinfo
[pgmoneta#525] Splitted configuration into main, common and walinfo
[pgmoneta#525] Splitted configuration into main, common and walinfo
[pgmoneta#525] Splitted configuration into main, common and walinfo
[pgmoneta#525] Splitted configuration into main, common and walinfo
[pgmoneta#525] Splitted configuration into main, common and walinfo
[pgmoneta#525] Moved users, servers and admins to common config
[pgmoneta#525] Moved users, servers and admins to common config
[pgmoneta#525] Fixed a bug in `zstd_decompress`
[pgmoneta#525] Fixed a bug in `zstd_decompress`
[#525] Fixed a bug in `zstd_decompress`