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 1pPzzC-0007Ty-JM for pgsql-performance@arkaria.postgresql.org; Thu, 09 Feb 2023 06:00:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pPzzA-0006RN-Fe for pgsql-performance@arkaria.postgresql.org; Thu, 09 Feb 2023 06:00:44 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pPzzA-0006RE-15 for pgsql-performance@lists.postgresql.org; Thu, 09 Feb 2023 06:00:44 +0000 Received: from mail-ed1-x52c.google.com ([2a00:1450:4864:20::52c]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pPzz7-000822-PQ for pgsql-performance@postgresql.org; Thu, 09 Feb 2023 06:00:43 +0000 Received: by mail-ed1-x52c.google.com with SMTP id q19so1201074edd.2 for ; Wed, 08 Feb 2023 22:00:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20210112.gappssmtp.com; s=20210112; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date :message-id:reply-to; bh=Tum0UCsJfBakWo5O/XOzcsDX02+QhSWX2/owqfmgwQw=; b=k5xpoWVwIFDZvtju4Nh1DAo8J7RWjECoS4N5CONZ2T6GnHfqDQOtzjDdEFyJPRTsvP ga4dl2uAxbuu9/LGqpMSVMWp6UoyBlWsPtBM9gT5lNc2a2nqBADJzogkxGOMc98DXD+K Y36NK+gAWTNDrIZ+pFv4a2DPhU3bBaNlu8MOCJKwcaFHCbM6JrRXh8k2ElS36HhUtpJ7 z7QL3n0HwZCWoEy/jit0wcPp0ZDgZzmPZC+PuCgz8CQ326AiR2ImrhjsxIGw6BJjhVJV jqBeAXmpGXh1d37vBTKaGgHWlD9GrHPRJ3QKh0m5N1aF6eWYX0QmdcZ+H17K74eKgRjr hBOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=Tum0UCsJfBakWo5O/XOzcsDX02+QhSWX2/owqfmgwQw=; b=ZMMxkTCPPxbpMjh/oI1KMuWvqkoGnYnQlujgrtAUcq4kNfnP5ctLW+sixuOGpVYV9c e5B0jhckFzIDWJ0K4imekt7qFeqJF+2zXhmGUi0vfW/Vvm1WK7PvSZ9mCr8q1DOsRVxI cyvyuVwntS/s4Tetn3MM67S5ngc6vr1QnAQAcXFIa37XrGTpQckA2rt05dA3MxyzqGmi OSFzvlEBFHcUdMTpPF+hsmp5BsGDdP/BHMmlHEiSl9kQsWES4aiurcUJcSios9LJGefm Nb78Ch7jOEAzsWXxkalMUEo2XupMwh02dlqm76cn+S6KCDR1WKKaE2AHlTVOmNKKtuX6 akEw== X-Gm-Message-State: AO0yUKXrYJgSh4l14aU6xaokc4FMCUgy+XYZ4wrdhiy7OEz1W80lO3CM D4KpJ4yTdMJJDw05IqmbLQwXJg== X-Google-Smtp-Source: AK7set9HluhDjwk9VZU7S/Th0Hg+Rz6Q8Hyy3YrxlunDJLb0DaKr6MwZJQeIr6lDX03HJ4Lt6vmRhg== X-Received: by 2002:a50:9e85:0:b0:4ab:15e1:5f90 with SMTP id a5-20020a509e85000000b004ab15e15f90mr3492891edf.15.1675922440290; Wed, 08 Feb 2023 22:00:40 -0800 (PST) Received: from localhost.localdomain (ip5f5aedce.dynamic.kabel-deutschland.de. [95.90.237.206]) by smtp.gmail.com with ESMTPSA id m3-20020a50d7c3000000b0049e1f167956sm292266edj.9.2023.02.08.22.00.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Feb 2023 22:00:39 -0800 (PST) Message-ID: Subject: Re: max_wal_senders From: Laurenz Albe To: Rick Otten , "pgsql-performa." Date: Thu, 09 Feb 2023 06:59:53 +0100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.3 (3.46.3-1.fc37) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, 2023-02-08 at 18:07 -0500, Rick Otten wrote: > I've been thinking about the max_wal_senders parameter lately and wonderi= ng if there > is any harm in setting it too high. No, there isn't, except that if you end up having too many *actual* WAL sen= ders, it will cause load. A high limit is no problem as such. > The documentation=C2=A0mentions an orphaned connection slot that may take= a while to time out. > How can I tell if I have any of those?=C2=A0 I was looking for a `pg_wal_= slots` table > similar to the `pg_replication_slots` table, but don't see anything obvio= us in the catalog. The view is "pg_stat_replication", but you won't see there if an entry is abandoned before PostgreSQL does and terminates it. You can set "tcp_keepa= lived_idle" low enough so that the kernel will detect broken connections early on. Yours, Laurenz Albe