From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id BCE4F2AA85 for ; Thu, 21 Mar 2019 15:30:06 -0400 (EDT) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KrKJLN2ghlU2 for ; Thu, 21 Mar 2019 15:30:06 -0400 (EDT) Received: from smtpng1.m.smailru.net (smtpng1.m.smailru.net [94.100.181.251]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id 0DB2F2AA6F for ; Thu, 21 Mar 2019 15:30:05 -0400 (EDT) From: imeevma@tarantool.org Subject: [tarantool-patches] [PATCH v1 0/3] sql: unify stat tables Date: Thu, 21 Mar 2019 22:30:03 +0300 Message-Id: Sender: tarantool-patches-bounce@freelists.org Errors-to: tarantool-patches-bounce@freelists.org Reply-To: tarantool-patches@freelists.org List-Help: List-Unsubscribe: List-software: Ecartis version 1.0.0 List-Id: tarantool-patches List-Subscribe: List-Owner: List-post: List-Archive: To: korablev@tarantool.org Cc: tarantool-patches@freelists.org This patch-set creates new space for SQL statistics and removes old ones. This is the first version of patch-set and do not contain last patch whish is removing of spaces _sql_stat1 and _sql_stat4. This patch should close at least five issues (#2843, #2962, #3242, #3866 and #3894) but all of them should be closed by the last patch of the patch-set. The same one, that wasn't included in this version. For now, only one issue will be adressed in this patch-set. https://github.com/tarantool/tarantool/issues/2843 https://github.com/tarantool/tarantool/tree/imeevma/gh-2843-unify-stat-tables Mergen Imeev (3): sql: disallow identical samples in statistics sql: define flags for OP_MakeRecord sql: create new space for SQL statistics src/box/bootstrap.snap | Bin 1831 -> 1876 bytes src/box/lua/space.cc | 2 + src/box/lua/upgrade.lua | 27 +- src/box/schema.cc | 7 + src/box/schema_def.h | 1 + src/box/sql/analyze.c | 854 ++++++++++++++------------------- src/box/sql/build.c | 82 +--- src/box/sql/delete.c | 2 +- src/box/sql/insert.c | 2 +- src/box/sql/select.c | 6 +- src/box/sql/sqlInt.h | 11 +- src/box/sql/update.c | 2 +- src/box/sql/vdbe.c | 34 +- test/app-tap/tarantoolctl.test.lua | 2 +- test/box-py/bootstrap.result | 7 +- test/box/access_misc.result | 4 + test/box/access_sysview.result | 2 +- test/sql-tap/analyze1.test.lua | 164 +++---- test/sql-tap/analyze3.test.lua | 2 +- test/sql-tap/analyze4.test.lua | 14 +- test/sql-tap/analyze5.test.lua | 29 +- test/sql-tap/analyze9.test.lua | 205 ++++---- test/sql-tap/lua/sqltester.lua | 27 ++ test/sql/sql-statN-index-drop.result | 62 +-- test/sql/sql-statN-index-drop.test.lua | 12 +- test/wal_off/alter.result | 2 +- 26 files changed, 716 insertions(+), 846 deletions(-) -- 2.7.4