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.96) (envelope-from ) id 1w2pht-000eGu-1i for pgsql-docs@arkaria.postgresql.org; Wed, 18 Mar 2026 12:09:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w2phs-00ALMf-1V for pgsql-docs@arkaria.postgresql.org; Wed, 18 Mar 2026 12:09:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w2gnR-006p8T-2C for pgsql-docs@lists.postgresql.org; Wed, 18 Mar 2026 02:38:09 +0000 Received: from mahout.postgresql.org ([2001:4800:3e1:1::227]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1w2gnN-00000000orq-1Zon for pgsql-docs@lists.postgresql.org; Wed, 18 Mar 2026 02:38:09 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=postgresql.org; s=20171124; h=Message-ID:Date:Reply-To:Cc:From:To:Subject: Content-Transfer-Encoding:MIME-Version:Content-Type:Sender:Content-ID: Content-Description:In-Reply-To:References; bh=25T+EHcYbMinwMMBcbCOaxn19n8RDNH5eVzEBecqRuw=; b=bmChrWiXZb1PRFfUxAoggjbO5w hbug8C//+1XdFOsDLB1CMfS7ZFo9MxLYTmpx0CZpBR6qihfkfHw7Do4DhQIzPVcFbvZn1Fp2aG2KA m7ceK/tutx2Vb04F26nVrpwAT+bLBKZ5r+l8WmwjhDqGXpCPVMfdq0v3uCzi4+m3GN3TO8MaWPI0M oJrx4m/A/YUZAqfsN8y4IPikmVAsx38qSAvvODxqqitLjeibB0I98XKc6BbZVKY0C2WIXe1cylDj6 XR2bOz6OEJ5ARzZjLNKR6DaH9vw+1lqIxOmL7boe+elwmK9UnriE3bdXjGuMjmoSb2zNrHkh5Tvo3 +jkRtHlA==; Received: from wrigleys.postgresql.org ([2a02:16a8:dc51::60]) by mahout.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w2gnM-000nLA-1K for pgsql-docs@lists.postgresql.org; Wed, 18 Mar 2026 02:38:04 +0000 Received: from localhost ([127.0.0.1] helo=wrigleys.postgresql.org) by wrigleys.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w2gnK-003bbQ-2w for pgsql-docs@lists.postgresql.org; Wed, 18 Mar 2026 02:38:02 +0000 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: pg_stat_statements does not require shared_preload_libraries to be modified To: pgsql-docs@lists.postgresql.org From: PG Doc comments form Cc: juraj.kristofik@enterprisedb.com Reply-To: juraj.kristofik@enterprisedb.com, pgsql-docs@lists.postgresql.org Date: Wed, 18 Mar 2026 02:37:09 +0000 Message-ID: <177380142997.811.12346365369880204472@wrigleys.postgresql.org> X-Auto-Response-Suppress: All Auto-Submitted: auto-generated List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk The following documentation comment has been logged on the website: Page: https://www.postgresql.org/docs/18/pgstatstatements.html Description: Hi, This is inaccurate at https://www.postgresql.org/account/comments/new/18/pgstatstatements.html/ the module just needs the contrib package; The docs: The pg_stat_statements module provides a means for tracking planning and execution statistics of all SQL statements executed by a server. The module must be loaded by adding pg_stat_statements to shared_preload_libraries in postgresql.conf, because it requires additional shared memory. This means that a server restart is needed to add or remove the module. In addition, query identifier calculation must be enabled in order for the module to be active, which is done automatically if compute_query_id is set to auto or on, or any third-party module that calculates query identifiers is loaded. When pg_stat_statements is active, it tracks statistics across all databases of the server. To access and manipulate these statistics, the module provides views pg_stat_statements and pg_stat_statements_info, and the utility functions pg_stat_statements_reset and pg_stat_statements. These are not available globally but can be enabled for a specific database with CREATE EXTENSION pg_stat_statements.