Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-35075

Make read_only a session level variable

    XMLWordPrintable

Details

    • New Feature
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      Being able to force the session into read-only mode would make it easier to be certain that no operation will write to the database. With stored procedures, it is often very difficult to know whether it's safe to execute on a replica or not.

      By making read_only a session level variable, it can be used with SET STATEMENT which would make it possible to call stored procedures with a high level of certainty that it won't cause a write to be made.

      Currently the tx_read_only variable can be used to emulate this to some extent but it still won't prevent a write transaction from being done.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              markus makela markus makela
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.