Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tdG1j-005xIq-OX for pgsql-hackers@arkaria.postgresql.org; Wed, 29 Jan 2025 21:55:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tdG1i-0092UD-U1 for pgsql-hackers@arkaria.postgresql.org; Wed, 29 Jan 2025 21:55:14 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tdG1i-0092U4-KN for pgsql-hackers@lists.postgresql.org; Wed, 29 Jan 2025 21:55:14 +0000 Received: from mail-lj1-x22e.google.com ([2a00:1450:4864:20::22e]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tdG1g-002BHV-1e for pgsql-hackers@postgresql.org; Wed, 29 Jan 2025 21:55:13 +0000 Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-30613802a59so974911fa.0 for ; Wed, 29 Jan 2025 13:55:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1738187711; x=1738792511; darn=postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=kGWYaros790KQd4uDaM4dhe43JtmdJbeLXNsMyAOUKY=; b=j/Jy3mlA7suTYlVhM1p34WLWF7tOfOYJj9T8wNjMke7+gE72PA7YcejcQaQZnqbwMT HZ7gy8CpnWuTCP0xyh21HOfhh1uiIUdTtqRTyidWZ0ElrMI7fGRrP8XLazwFZldsqlMc tIp+O0kCyw1JwNgCCeorlkr2DDSVS/mQN3KQtdPQjhP92G81oKotGHqkZLPW8JRE22er 9VMsIy2jP5xlRxdlY3rGEbde5OPlnr5WrPpL5N85hjeh7je7e9xUfqn2/pCFf6HbecT6 G1D6P+wpwmWBdPnFzHi2nEje2qK/KGAlIB+cGOP7Ucio1aQNNlY1x295FCSMOocBS2++ O4vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738187711; x=1738792511; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=kGWYaros790KQd4uDaM4dhe43JtmdJbeLXNsMyAOUKY=; b=PIYYjK2rcBZ9q88NU5XxfN5XsKenlcEM9R8JOBXzWfWMhJNmPohvU0mOO0jH9sCnDs hRFZRjWbCswEGBagvXbhsfBnvUHZwKG4E3FRcnM1dppOEzN7fPmTmbNFXTi5Q0eG0du+ qN6I33CFojULDOHcFJQ/XGAtHyHqiN4Av78QnaSBP8EbaGW7IDIiATPDg5gQ9xNoQ3WO KBIZepI5Me47sN5Ei7X8uULhrPzKyiaLC7uyBDAxY4r9jD9IMHGXH5BXUpKP/LlQ4Uqu nSqhRY43noKSTs4UJxw3kklY0uYHYVhQGqfNTWmYVFLE1jXzptQfh8gnZmZa2Oc9OoDp +nxw== X-Forwarded-Encrypted: i=1; AJvYcCXu1e+c+k9hCPP7bY+Uo3MVNcVQuy+6O0w4wkbi4LAlxfTyBsuak8YnU7Z90QOJOL605256JKF6jB9HYDQ2@postgresql.org X-Gm-Message-State: AOJu0YyczM/MqyI0a8Fka+yor2a/J6jSN0IaxF9ke8nXDqeh+ZBJcNf3 t/rTgBcwxkNlkT8ZK+dMoCRn40Wpo3KyephMsa+BRW9sxRBpisGIPmCyYHQhDdDNdRJGtJ3U1u7 RV6qqTcyJW1J7dxmiVu5Xi3Bpcbw= X-Gm-Gg: ASbGncsVbZxxh5l/JJylVfNhh9WtOo5Lu60YEiqxOnaSknopvUB74q/lOFsBlZ69ZrR OuXWkboQbqbkmfu+08zcSfUNhR1S46cCrYXg8hTJkY/nJC+DTanO0hu5OEAReti/O6Fw7Uw== X-Google-Smtp-Source: AGHT+IG9J5og8vOY+ajV39zPTKvs/ghtJlp35t4CwgHRMznm38u9P+dGPIdn/5S/6z9ylzCo0XxXmpuoWgyIebHgmfQ= X-Received: by 2002:a2e:bc84:0:b0:300:3de4:ff7f with SMTP id 38308e7fff4ca-3079680c534mr21842931fa.6.1738187711071; Wed, 29 Jan 2025 13:55:11 -0800 (PST) MIME-Version: 1.0 References: <20994d10-ab44-4c6b-91bc-c4675cd2e58e@tantorlabs.com> <9D8A5BC8-A3A5-4DA9-9382-F30D343247D1@yandex-team.ru> <6cf6270b-e8fa-4d99-b74a-17e781cdf309@tantorlabs.com> <3a27c830-b81f-4560-9774-a87d9b922fbd@tantorlabs.com> <7AD765EF-14DE-4B3E-8282-E82A9B44DBAA@yandex-team.ru> <0c7770bd-9750-4200-a472-bdb262583c2f@tantorlabs.com> <18631d46-1741-4edc-b116-8d9631cdf919@tantorlabs.com> In-Reply-To: <18631d46-1741-4edc-b116-8d9631cdf919@tantorlabs.com> From: Sami Imseih Date: Wed, 29 Jan 2025 15:55:00 -0600 X-Gm-Features: AWEUYZmnsc8yc863l8sgGCjiwD-PoiOQrVMw96K8aWJzLxtMPqSiemPwxeszFlI Message-ID: Subject: Re: Sample rate added to pg_stat_statements To: Ilia Evdokimov Cc: Andrey Borodin , Alena Rybakina , Alexander Korotkov , Michael Paquier , Greg Sabino Mullane , pgsql-hackers Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > and we've been trying to solve a non-existent problem? Anecdotally speaking, Most users will encounter bottlenecks due to exclusive locks on pgss hash ( dealloc and garbage collection ) more often than they will on the spinlock. The spinlock will likely become more of an issue when you are not seeing much dealloc/gc and running on a very large machine. So, I don't think it's a non-existent problem, but I don't think it's the most common problem. Regards, Sami