Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hUB3B-00008w-Dh for pgsql-general@arkaria.postgresql.org; Fri, 24 May 2019 14:20:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hUB3A-0007gw-63 for pgsql-general@arkaria.postgresql.org; Fri, 24 May 2019 14:20:00 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1hUB39-0007gj-Dl for pgsql-general@lists.postgresql.org; Fri, 24 May 2019 14:19:59 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hUB36-0002gv-De for pgsql-general@postgresql.org; Fri, 24 May 2019 14:19:59 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 33E2D21B5A; Fri, 24 May 2019 10:19:55 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Fri, 24 May 2019 10:19:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm3; bh=J I1fjl+dW2/vt7AhigeVzwf4985M0d+MDA6hn17KhVY=; b=ljL/3g2tLLTKMWx5r ddW8Nn97rcdDvBvD1QxyhWmT3sorNLwTBG9+nzgoR1/hLCyMPJ4CRktAErOWVTe3 YuOV9FgdUw8GN9OluaOC3IXbe8GwL2IRgL9xiaPGYrXvmd8O6mnXcLyXQi6dUhfE C/JR8TAEGGFPv5xX2wqAL5ebPZGtxyUPm/zAjlO5jW/gSouBqwsk3M7VKT27WyFN r9m79GBZCYPlA8+NwmLQ+p3HJL285InSJCpdxmCtm1TKPfyfFnqllpuZ20h+nOdO Rfdz7rltN9ZzbFFvpytlIS2FwbpUY5gvdu2x+vFUUnLGDfviaMNdZH1HQiDCfNXv HmQlA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=JI1fjl+dW2/vt7AhigeVzwf4985M0d+MDA6hn17Kh VY=; b=x+nwVX+HrPrO/jdgr97uC+pMJcEONcCYEMSHxThKkKIFvy3jCHs4TCdmk aPlbjnX3BXZro/Mgny88+vSXJOkcEXGglWiWRvol59GUucz/x4VQee9TO9VFIanS 2Jyi6bcDK1UBSX+ACT46sbgqF5oMBc7NZc5k8dD+YDo23Dgcu6MNbMJwBQT3oN8z IlXCFLQW+ch3Dhh6VdZQwU53J4xAX+iPo47+HZO+PByfIOXMCwiygqIwI0jXdrLz AtAsft1K2Q0n30HMC4+6EQH7U7QqywYjp96sOQgpsXfkpFGFqExAzdzB662SUrAm cXcSs6jNnjDNtyXwdJhncTbVB6EEw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrudduiedgjeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtje ertddtfeehnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhk lhgrvhgvrhesrghklhgrvhgvrhdrtghomheqnecukfhppeejuddrvdduvddrudehtddrvd dtvdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghk lhgrvhgvrhdrtghomhenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from [192.168.1.4] (unknown [71.212.150.202]) by mail.messagingengine.com (Postfix) with ESMTPA id E8168380086; Fri, 24 May 2019 10:19:53 -0400 (EDT) Subject: Re: POSTGRES_FSM_RELATIONS CRITICAL: DB control fsm relations used: 79569 of 80000 (99%) To: Julie Nishimura , "pgsql-general@lists.postgresql.org" , pgsql-general References: From: Adrian Klaver Message-ID: <804b26fe-269e-82d7-01ef-86da933a6566@aklaver.com> Date: Fri, 24 May 2019 07:19:53 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 5/23/19 11:57 PM, Julie Nishimura wrote: > Hello, > We have an issue with fsm_relations utilization reaching 99%, I was able How are you arriving at the above percentage? How many tables/indexes do you have in the database(s)? > to vacuum a handful of tables, but it wasn't enough to make a noticeable > difference. I think at this point we will need to increase the number of > fsm_relations from 80,000 to 100,000 which will require a restart. > Because there aren't any more dead rows to delete. I confirmed this by > connecting to each db and running the following query: > SELECT relname, n_live_tup, n_dead_tup from pg_stat_user_tables order by > n_dead_tup desc > daily_mail_shared_state_cddt_3588- > relname | n_live_tup | n_dead_tup > ----------------+------------+------------ > article_errors | 0 | 0 > article_names | 3375193 | 0 > indexdefs | 0 | 0 > tabledefs | 0 | 0 > > Above output, shows n_dead_tup is zeroed out, this makes me believe that > we need to increase the number of fsm relations to a number between 90k > and 100k.But I might be wrong, need your advice. > > PostgreSQL 8.2.15 (Greenplum Database 4.3.8.1 build 1) > > Thanks! -- Adrian Klaver adrian.klaver@aklaver.com