MDEV-5231: Per query variables from Percona Server (rewritten)