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

SET STATEMENT optimizer_trace=1 Doesn't save the trace

Details

    Description

      Suppose, one wants to produce trace for a statement.
      One can do that with multiple statements:

      set optimizer_trace=1;
      select * from seq_1_to_10 where seq<10;
      set optimizer_trace=0;
      

      select left(trace, 100) from information_schema.optimizer_trace;
      

      This produces a first part of the trace.

      However, trying to do the same with SET STATEMENT produces an empty result:

      set statement optimizer_trace=1 for select * from seq_1_to_10 where seq<10;
      select left(trace, 100) from information_schema.optimizer_trace;
      

      produces nothing.

      Attachments

        Activity

          Transition Time In Source Status Execution Times
          Sergei Petrunia made transition -
          Open In Progress
          22h 4m 1
          Sergei Petrunia made transition -
          In Progress In Review
          16h 19m 1
          Oleksandr Byelkin made transition -
          In Review In Testing
          3h 41m 1
          Oleksandr Byelkin made transition -
          In Testing Stalled
          7s 1
          Sergei Petrunia made transition -
          Stalled Closed
          6h 50m 1

          People

            psergei Sergei Petrunia
            psergei Sergei Petrunia
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

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