Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jiLNv-0000o1-CN for pgsql-hackers@arkaria.postgresql.org; Mon, 08 Jun 2020 17:16:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jiLNt-00068N-ND for pgsql-hackers@arkaria.postgresql.org; Mon, 08 Jun 2020 17:16:29 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jiLNt-00068G-G7 for pgsql-hackers@lists.postgresql.org; Mon, 08 Jun 2020 17:16:29 +0000 Received: from mail-qv1-xf44.google.com ([2607:f8b0:4864:20::f44]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jiLNm-0003ns-U2 for pgsql-hackers@postgresql.org; Mon, 08 Jun 2020 17:16:28 +0000 Received: by mail-qv1-xf44.google.com with SMTP id y9so8707340qvs.4 for ; Mon, 08 Jun 2020 10:16:22 -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=E8/uynnjX8Gty4xYlZHOjCTALLT+kTUClzRXg0EYRYw=; b=T2Pmo1asr8NmvVMmHs/dyd/vY5UGtNW+iruzCCRR+V2rbuUUjvjA5i8aXe0pdYxqRZ E/uO833BuHOCvQSQauo/gpNu04eH85PQHQIFV9Z5ivggb1RwRn4OgyEsLfH0lWA0tQBK JqPo+EePwiUcDaYk20gPrkXMrpM5rR3m+Jxsp59tHj0Ao50xvnA4UZOuJ1im3G5Wnj+0 fw4IMQuNYyBV5LmH6LkMUVUTYpTXdT7s5odplj0N603qMyVHbeEvShTtYkBDtav/yelj V94B/f7c+hrUEh7k9d5fFStKMOF2b72nqzimZOO9oepWLjSyguSbCyPhdlv0VwVMFl8J jKgQ== 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=E8/uynnjX8Gty4xYlZHOjCTALLT+kTUClzRXg0EYRYw=; b=W36v3I6jJkxAteFUz7ormb1Z16u7VFmtCncukvFCpzfw2mhYk8CMA75zibLjJ8wCS0 EkuHuadSd0bPULrQP05gVFvnFsRm3mK8K04hDpP1rgcKPg4fsDX/mYMSQmYrf1oSK/j+ UtBZaa9Ukq0a7FEkVWXfszWKD8i0c3A6BW2Esbe0gLb5tMmFc8FnweWZMTdcUG1xrvIS uqR4+PZtNVrPKDFuAIqI5dhVYGGnPwUb+jG6EBUvfdJGuV7m6Tw9l2EutZ2akXbKlZfQ d5+lc927FeERioD3cZvRE7l5nL7EbvorVVkz6/sUfjZVT5DAwSid5kakXZ9UpSnRbG3q tU8Q== X-Gm-Message-State: AOAM533fSjZYwbNpLLoNa48ji6Wc6wImRgMQRAwPNAvpjFNQlk9obkZU UU77xWu83dbjRhvjIgaCyCqPMw== X-Google-Smtp-Source: ABdhPJyjLO6cguPXuX6/cSl/gjRCj2yDtboVpgCCp0a8kdAfSsCgYMHyvaDKl6A0sCIc7z/bnDTIgw== X-Received: by 2002:a05:6214:108d:: with SMTP id o13mr22515757qvr.58.1591636581891; Mon, 08 Jun 2020 10:16:21 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([190.95.18.252]) by smtp.gmail.com with ESMTPSA id x4sm8241978qtj.43.2020.06.08.10.16.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jun 2020 10:16:21 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id C6A0A3006D9; Mon, 8 Jun 2020 13:16:19 -0400 (-04) Date: Mon, 8 Jun 2020 13:16:19 -0400 From: Alvaro Herrera To: Tomas Vondra Cc: Magnus Hagander , Michael Paquier , Amit Kapila , David Fetter , PostgreSQL Development Subject: Re: Bump default wal_level to logical Message-ID: <20200608171619.GA11063@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200608133824.57lwoctf7gapnkmr@development> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-Jun-08, Tomas Vondra wrote: > Not sure if it's sufficient, though, because switching to logical may > require bumping up number of slots, walsenders, etc. At which point you > actually need a restart. Not to mention that extensions using logical > decoding (like pglogical) need to allocate shared memory etc. But for > the built-in logical replication that is not an issue, ofc. I think it's reasonable to push our default limits for slots, walsenders, max_bgworkers etc a lot higher than current value (say 10 -> 100). An unused slot wastes essentially no resources; an unused walsender is just one PGPROC entry. If we did that, and also allowed wal_level to be changed on the fly, we wouldn't need to restart in order to enable logical replication, so there would be little or no pressure to change the wal_level default. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services