From: Andrew Dolgov Date: Tue, 10 Jul 2018 11:08:55 +0000 (+0300) Subject: update_rss_feed: limit maximum length of tsvector data because of pgsql limitations X-Git-Tag: 18.8~13 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=6e6c3a878d561099ea5c50181a1eb4d4b4494552;p=tt-rss.git update_rss_feed: limit maximum length of tsvector data because of pgsql limitations --- diff --git a/classes/rssutils.php b/classes/rssutils.php index dd6d1dd3..3315d9f8 100755 --- a/classes/rssutils.php +++ b/classes/rssutils.php @@ -1008,7 +1008,7 @@ class RSSUtils { if (DB_TYPE == "pgsql") { $params[":ts_lang"] = $feed_language; - $params[":ts_content"] = mb_substr(strip_tags($entry_title . " " . $entry_content), 0, 1000000); + $params[":ts_content"] = mb_substr(strip_tags($entry_title . " " . $entry_content), 0, 900000); } $sth->execute($params);