Skip to content

Split configuration #525

Closed
Closed

Description

@jesperpedersen

We need a common configuration such that we can do main configuration, and configuration for the other tools like walinfo and cli

Activity

  1. jesperpedersen commented on Mar 18, 2025

    @jesperpedersen
    MemberAuthor

    @Mohab96 Can you take this ?

  2. Mohab96 commented on Mar 19, 2025

    @Mohab96
    Collaborator

    Yeah, of course. I was going to do this task eventually after finishing #508

  3. Mohab96 commented on Mar 19, 2025

    @Mohab96
    Collaborator

    What this issue aims to accomplish is detailed in this comment along with the four subsequent comments.

    Just for documenting the process

  4. Mohab96 commented on Mar 19, 2025

    @Mohab96
    Collaborator

    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?

  5. jesperpedersen commented on Mar 19, 2025

    @jesperpedersen
    MemberAuthor

    @Mohab96 common_configuration is the base struct where all configuration properties that are shared between configurations are located.

    So, that would be all the logging configuration for now.

    Of course struct common_configuration has to be first field in the other structs (main, walinfo, cli, ...)

  6. Mohab96 commented on Mar 19, 2025

    @Mohab96
    Collaborator

    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;

    what do you think?

  7. jesperpedersen commented on Mar 19, 2025

    @jesperpedersen
    MemberAuthor

    @Mohab96 Yes, you do all the common, main and walinfo changes in this patch, then you rebase and work on finishing #508

  8. added 5 commits that reference this issue on Mar 20, 2025
  9. added 3 commits that reference this issue on Mar 20, 2025
  10. added 2 commits that reference this issue on Mar 28, 2025
  11. added a commit that references this issue on Mar 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

feature

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions