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 1ozrOm-0006bx-7v for pgsql-performance@arkaria.postgresql.org; Tue, 29 Nov 2022 03:35:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ozrOk-0008Eo-TK for pgsql-performance@arkaria.postgresql.org; Tue, 29 Nov 2022 03:35:06 +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 1ozrOk-0008Ed-G4 for pgsql-performance@lists.postgresql.org; Tue, 29 Nov 2022 03:35:06 +0000 Received: from mail-il1-x131.google.com ([2607:f8b0:4864:20::131]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ozrOe-0006ii-Vj for pgsql-performance@postgresql.org; Tue, 29 Nov 2022 03:35:05 +0000 Received: by mail-il1-x131.google.com with SMTP id g7so6061921ile.0 for ; Mon, 28 Nov 2022 19:35:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20210112.gappssmtp.com; s=20210112; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=fDPhDVJz8FCKMSfnGCTuxuJY8RdQjlGK7UUShWajhtk=; b=2QrSlu+uwt7d2vfmCUTMbK1jpJj/3OSar8rf4MTI78DJwg5jS0ophDGrd5rdALak1S Z9pQGWMm4XmtRTR+b5QvB66yS1vUBQv377WVWtJLQLk0Vr/G7Oc0ZKnW08V+/xGykTbf uAIoZu9Q6qtKvQw6jG2BuydvSK2dJf8GmGimX5DO0tLQk0seM2bi+CzhMmr/KYvH1BE2 6XNQmZR6naNeAtHxMcjnJ6kDZ80h4G07Gaw5eIrYX7CRPrQC803SW6abFxzVi4mDmsRo Gw3RXAd3SnocmKJs/kX60IkyuAdeLobXKQPqxmpJcnGgxTwjJsFW0GsNNeM4fDR0l0Qx HbfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=fDPhDVJz8FCKMSfnGCTuxuJY8RdQjlGK7UUShWajhtk=; b=6l7Enms0dGiMBGg4znyRYb70lIz7kRVO3Dk8ZlKC60o02kfsRetvZTfbBFBYDl8cDl zpYwvVjCvRkuLO0Dy6Vg2jPyXfbrEuKOEKodbUvgHAU0KcrNIMMtasHXTl7aWqxep/NF FShic4xLdM2UH0Wt60eXHrEsaK3xS0kzdsp8i9cXxFvRhFsId+rCWDW4ACPIfyZ1LtKF dr+KWZH4wXsqv6fJ6CfOc8JjY5n08CYZIcNVpjIH5dDNGwBPYL4JshZMs1o+FtvUNher ii3FCf3O+x8ghUktfrVSliqT23t5oBhB9w/te2WLLGJwzdw5a+szu2LHxUyD04XZY5nU 6lNQ== X-Gm-Message-State: ANoB5plu5ZxGOFmnMGf0V/TTkfr6R9tWC2DGdPZsvmclBTJk6qp14ZVu /bd3bPaVVCBth1l0XOMjySjQ7IhrkjLw9GLE X-Google-Smtp-Source: AA0mqf5aa92UdbrC3NJQgbzYIKFBRpszLMw0vJ1TCNxfM7jrm3xXjtBPqopkOKeiIefvKiy4i7swMw== X-Received: by 2002:a92:a814:0:b0:302:be57:41aa with SMTP id o20-20020a92a814000000b00302be5741aamr16251960ilh.231.1669692899912; Mon, 28 Nov 2022 19:34:59 -0800 (PST) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id j198-20020a0263cf000000b003753b6452f9sm4818437jac.35.2022.11.28.19.34.59 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 Nov 2022 19:34:59 -0800 (PST) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id 8BE5C800CEB; Mon, 28 Nov 2022 21:34:58 -0600 (CST) Date: Mon, 28 Nov 2022 21:34:58 -0600 From: Justin Pryzby To: Josh Berkus Cc: pgsql-performance@postgresql.org Subject: Re: Catching up with performance & PostgreSQL 15 Message-ID: <20221129033458.GF11463@telsasoft.com> References: <89e7da59-0dfe-45fe-e082-00f777e200a1@berkus.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <89e7da59-0dfe-45fe-e082-00f777e200a1@berkus.org> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, Nov 28, 2022 at 06:59:41PM -0800, Josh Berkus wrote: > Hey, folks: > > I haven't configured a PostgreSQL server since version 11 (before that, I > did quite a few). > > What's changed in terms of performance configuration since then? Have the > fundamentals of shared_buffers/work_mem/max_connections changed at all? > Which new settings are must-tunes? > > I've heard about new parallel stuff an JIT, but neither is that applicable > to my use-case. shared buffers is the same, but btree indexes are frequently (IME) 3x smaller (!) since deduplication was added in v13, so s_b might not need to be as large. In addition to setting work_mem, you can also (since v13) set hash_mem_multiplier. default_toast_compression = lz4 # v14 recovery_init_sync_method = syncfs # v14 check_client_connection_interval = ... # v14 wal_compression = {lz4,zstd} # v15 Peeking at my notes, there's also: partitioning, parallel query, brin indexes, extended statistics, reindex concurrently, ... ... but I don't think anything is radically changed :) -- Justin