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 1hVjRE-0004Eb-PB for pgsql-general@arkaria.postgresql.org; Tue, 28 May 2019 21:15:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hVjRC-0002x2-Is for pgsql-general@arkaria.postgresql.org; Tue, 28 May 2019 21:15:14 +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 1hVjRC-0002wo-91 for pgsql-general@lists.postgresql.org; Tue, 28 May 2019 21:15:14 +0000 Received: from mail-io1-xd44.google.com ([2607:f8b0:4864:20::d44]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hVjR9-0000EJ-0F for pgsql-general@postgresql.org; Tue, 28 May 2019 21:15:13 +0000 Received: by mail-io1-xd44.google.com with SMTP id h6so8484612ioh.3 for ; Tue, 28 May 2019 14:15:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=lQVwXDuiTJn7G4XWSoG9MYNYBJvpXo8fZjvCgYgzjcg=; b=veX6gtPzWvKrSNKhCScRx3RWd2EsaoVMgLdeM7OnsUYNRy8s+h1bG0Xn9GJhAfX4r5 h8fwZtlIgDkatFl1ZCdMQhZPBK0sNoMusxOHLkl0/rAGjwEkDPvNn5dBI7zug0/XwehS 7Qg/rNxI8Od1b+EipAZ+t6zBItkm4T10c8wxoKXlPWgFSTlWw0z9KWSJyHYFdANLUHlk TNxazTMxxGH0mF3rD0YPFLx+TpffwJryGhBqEErdsi4308Osq2LcNAQrzWkmVAPjC4pX m9ydwfxvOlOJVsdeQkJsAvdYQ/aBuQer8BsVtxmxEyk/CcDZBATlXwK5/NqYMricqZuE IuuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=lQVwXDuiTJn7G4XWSoG9MYNYBJvpXo8fZjvCgYgzjcg=; b=QVwyYSGPWJGu3GR2TpU7mbuCIQMHew4FnTqCg3aQ06yyQpj3wTfTC5oNGa6AMErHYF FKtcAULWC77DP53rgtJLhubEc1E+Klkz06IQ64rUXaDiQSce1wRsL5dlqeORWyKxO35V 7Js9WnItBujK2MgZ7bRVE7PnfrcuNDjBZMnvvuhRAyFtQRqJH1hr1KS6zzq7b2yYXosN u8swjlVsc/sWlzK5X4aT6ZNQjh95jyuDUK+wTE29wQJi0yOuGwLQz0NKRECImNHBhNiF 0xlUcmve03PGVGH/kU8Ub/MOGJJHhB03/Iw5VBYJzYBWKn7MxhhTZFZJQGuk8itI3coh Yy6w== X-Gm-Message-State: APjAAAUYBmta6Xhe9y5aD4vaaBjZokEZB6PNwh1ZtOLIFM1rQcmt9sNP WovhPhAM7lbrnpvqlaYJ8be+qA== X-Google-Smtp-Source: APXvYqw16DC5ioE0NhdSlWZVjA2LIhTloGBvObMgalbu0Ksa5rP6AUndYaL43HhaKXvJN6Aj7SEUow== X-Received: by 2002:a5d:97d2:: with SMTP id k18mr68690398ios.130.1559078108669; Tue, 28 May 2019 14:15:08 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([72.139.62.74]) by smtp.gmail.com with ESMTPSA id e188sm3363529ioa.3.2019.05.28.14.15.08 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 28 May 2019 14:15:08 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id D64C2120C17; Tue, 28 May 2019 17:15:06 -0400 (-04) Date: Tue, 28 May 2019 17:15:06 -0400 From: Alvaro Herrera To: Julie Nishimura Cc: Adrian Klaver , "pgsql-general@lists.postgresql.org" , pgsql-general Subject: Re: POSTGRES_FSM_RELATIONS CRITICAL: DB control fsm relations used: 79569 of 80000 (99%) Message-ID: <20190528211506.GA27955@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-May-28, Julie Nishimura wrote: > Adrian, I am trying to avoid to do any tweaking to this legacy system that nobody knows well (we inherited it recently). > Do you think it might help if we possibly drop old tables (I assume their indices will be removed too), so the overall number of objects will go down? Thanks a lot Having insufficient max_fsm_relations causes severe problems, so don't if you can avoid it. I would certainly recommend increasing it. Note that increasing max_fsm_relations requires that you have a large enough shared memory allowance in the operating system; if you're too close to the limit and try to restart with the increased setting, the service may fail to start. However, unless you're on something weird that requires recompiling the kernel to update that limit, it should be fairly simple to update it. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services