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 1jiNRD-0004sw-Gt for pgsql-hackers@arkaria.postgresql.org; Mon, 08 Jun 2020 19:28:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jiNRC-000890-5S for pgsql-hackers@arkaria.postgresql.org; Mon, 08 Jun 2020 19:28:02 +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 1jiNRB-00088p-Qs for pgsql-hackers@lists.postgresql.org; Mon, 08 Jun 2020 19:28:01 +0000 Received: from mail-qk1-x741.google.com ([2607:f8b0:4864:20::741]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jiNR9-0004ye-KV for pgsql-hackers@postgresql.org; Mon, 08 Jun 2020 19:28:00 +0000 Received: by mail-qk1-x741.google.com with SMTP id v79so18420885qkb.10 for ; Mon, 08 Jun 2020 12:27:59 -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=B8vZbNIOYAeAR5U2nZXlaMZhyxd3e4gQaWHUZ8grVds=; b=ao6JG5NjRliE+3eMhC+Nll54/c81vofVfQSuoahXfmaI6TcNQg0xSPX20nXuMoyaVU ZS/kHDGx5RFYMgjQTVmLLS+18NKsBp/PUC53laA/y++W9pgm+elNKboLULEjoyryT47K y+187SWzS1ydheEpkM8dgCjG1PVVYXxQu1grtzTL+UKIEzl49kSOIrVEGvxH06KlHpaP JUkkMUvy57/vghxq2xM2QtLpzjNVhATrr06G1e/j5kUyA7+BKVuQZbI2bA6MRK1rNFYd VA2s11hF9zLf7ins5e6grks/VBNCN/4877TVajNuA600/nb0tK3SLPIKyTvAAHxh77IY vmEA== 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=B8vZbNIOYAeAR5U2nZXlaMZhyxd3e4gQaWHUZ8grVds=; b=H5djzuc7g5VZ+ryFMz2fgbV6F19j9jJX30xvPSsPzB9HGsmhPz9Fcmh5P50no5xAwe oeuF8aZZynWyDUHNK5dVcMukNmWxfEe90O/HspzVV47nSmxxUEv1D8iEIwPXmSjE50bS wNBYit3Ht3C+TlhWza9jnW8czbD2JOVcFVyBRZAIetLB/afQer8JI7iqJ1+sMc5x2RYG 2r7LPnKUxm8FoZIYT+JUpdgHud1yVVwLtCjTyJFMy7zgbRt7Ps8qYNf7v3JifBiCxjbZ jG5UDXo7ahW+V0SKouUloJhmwvN+p+Habh3Xax49zbNOLGHFw8YwOfNUpPRecKy90Aj4 6GsQ== X-Gm-Message-State: AOAM5319UQPHNBWnGyLJ76xVY1Pvs2pzUQGP+2CsbDwLxtCfRiIEFQuq y4xDR2TBB43JMbzW4AIXHydgCA== X-Google-Smtp-Source: ABdhPJz0Guqir6XgzOhxtIwK7ELuIvBOryTgZkwgCQvNY2OZOAHotTQQAtjetNsmy6mGxLcRiNYFww== X-Received: by 2002:ae9:ed4c:: with SMTP id c73mr3076960qkg.309.1591644478692; Mon, 08 Jun 2020 12:27:58 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([190.95.18.252]) by smtp.gmail.com with ESMTPSA id u7sm7914051qkb.7.2020.06.08.12.27.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jun 2020 12:27:58 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 7607C3006E5; Mon, 8 Jun 2020 15:27:56 -0400 (-04) Date: Mon, 8 Jun 2020 15:27:56 -0400 From: Alvaro Herrera To: Robert Haas Cc: Tomas Vondra , Magnus Hagander , Michael Paquier , Amit Kapila , David Fetter , PostgreSQL Development Subject: Re: Bump default wal_level to logical Message-ID: <20200608192756.GA16651@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.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-Jun-08, Robert Haas wrote: > On Mon, Jun 8, 2020 at 1:16 PM Alvaro Herrera wrote: > > 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. > > Wouldn't having a whole bunch of extra PGPROC entries have negative > implications for the performance of GetSnapshotData() and other things > that don't scale well at high connection counts? On a quantum-mechanics level, sure, but after Andres's snapshot scalability patches, will it be measurable? (Besides, if your workload is so high that you're measurably affected by the additional unused PGPROC entries, you can always tune it lower.) -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services