From 9802ddbba7faca8f0e34babc4b5627efdc5d3fb1 Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Mon, 27 Mar 2023 02:18:50 -0400 Subject: [PATCH] sqlite: patch performance regression more info: https://sqlite.org/src/info/aa6bd6dff751223e https://lore.kernel.org/distributions/87wn35bod7.fsf@gentoo.org/T/ --- .../sqlite/patches/3.41-perf-regression.patch | 19 +++++++++++++++++++ srcpkgs/sqlite/template | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/sqlite/patches/3.41-perf-regression.patch diff --git a/srcpkgs/sqlite/patches/3.41-perf-regression.patch b/srcpkgs/sqlite/patches/3.41-perf-regression.patch new file mode 100644 index 00000000000..d3e3e20a4c9 --- /dev/null +++ b/srcpkgs/sqlite/patches/3.41-perf-regression.patch @@ -0,0 +1,19 @@ +Patch-Source: https://sqlite.org/src/info/aa6bd6dff751223e +https://sqlite.org/forum/forumpost/3a180ba0d4 + +Can be removed in 3.42.x + +diff --git a/sqlite3.c b/sqlite3.c +index 947a154..bf9ce16 100644 +--- a/sqlite3.c ++++ b/sqlite3.c +@@ -143420,9 +143420,6 @@ static int pushDownWhereTerms( + if( pSel->pWin ) return 0; /* restriction (6b) */ + #endif + } +- if( compoundHasDifferentAffinities(pSubq) ){ +- return 0; /* restriction (9) */ +- } + if( notUnionAll ){ + /* If any of the compound arms are connected using UNION, INTERSECT, + ** or EXCEPT, then we must ensure that none of the columns use a diff --git a/srcpkgs/sqlite/template b/srcpkgs/sqlite/template index d63c68fc0f6..14d03054c9e 100644 --- a/srcpkgs/sqlite/template +++ b/srcpkgs/sqlite/template @@ -1,7 +1,7 @@ # Template file for 'sqlite' pkgname=sqlite version=3.41.2 -revision=1 +revision=2 _amalgamationver=$(printf "%d%02d%02d00\n" ${version//./ }) build_style=gnu-configure configure_args="--enable-threadsafe --enable-dynamic-extensions --enable-fts5"