Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cvukc-0003RE-KF for pgsql-performance@arkaria.postgresql.org; Wed, 05 Apr 2017 23:54:10 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cvukc-0002gg-48 for pgsql-performance@arkaria.postgresql.org; Wed, 05 Apr 2017 23:54:10 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cvukb-0002fL-05 for pgsql-performance@postgresql.org; Wed, 05 Apr 2017 23:54:09 +0000 Received: from mwork.nabble.com ([162.253.133.43]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cvukT-0002fQ-Fd for pgsql-performance@postgresql.org; Wed, 05 Apr 2017 23:54:08 +0000 Received: from mben.nabble.com (unknown [162.253.133.72]) by mwork.nabble.com (Postfix) with ESMTP id 1803837BA0661 for ; Wed, 5 Apr 2017 16:54:00 -0700 (MST) Date: Wed, 5 Apr 2017 16:54:00 -0700 (MST) From: rverghese To: pgsql-performance@postgresql.org Message-ID: <1491436440096-5954503.post@n3.nabble.com> In-Reply-To: <5326.1491434397@sss.pgh.pa.us> References: <1491432671098-5954485.post@n3.nabble.com> <5326.1491434397@sss.pgh.pa.us> Subject: Re: Table not using tsvector gin index and performance much worse than when it uses it. MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: 1.3 (+) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org Thanks for the response! * We are on version 9.5.6 * Less than 10% of the table was updated today (between the time of the last reindex to when performance deteriorated) * autovacuum is on. I don't see an autoanalyze property in config but these are the settings for analyze /autovacuum_analyze_threshold = 3000 # min number of row updates before analyze #autovacuum_vacuum_scale_factor = 0.2 # fraction of table size before vacuum #autovacuum_analyze_scale_factor = 0.1 # fraction of table size before analyze #autovacuum_freeze_max_age = 200000000 # maximum XID age before forced vacuum # (change requires restart)/ * And this #gin_pending_list_limit = 4MB * gin_clean_pending_list() is not available. Will play with gin_pending_list_limit and see what that does. Thanks! RV -- View this message in context: http://www.postgresql-archive.org/Table-not-using-tsvector-gin-index-and-performance-much-worse-than-when-it-uses-it-tp5954485p5954503.html Sent from the PostgreSQL - performance mailing list archive at Nabble.com. -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance