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 1oLgiW-0000Wf-9x for pgsql-hackers@arkaria.postgresql.org; Wed, 10 Aug 2022 08:05:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oLgiU-0006rM-KA for pgsql-hackers@arkaria.postgresql.org; Wed, 10 Aug 2022 08:05:26 +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 1oLgiT-0006oR-KP for pgsql-hackers@lists.postgresql.org; Wed, 10 Aug 2022 08:05:26 +0000 Received: from smtp-fw-9103.amazon.com ([207.171.188.200]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oLgiQ-0007Rt-9q for pgsql-hackers@lists.postgresql.org; Wed, 10 Aug 2022 08:05:24 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1660118722; x=1691654722; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=izuw7JnSe6ZbAfrAPQhNGDAYSUxaUZ9ErA1iuVdTfBA=; b=Tn0gLqEdGQCkKwlDmKQ5Ml8AyKP1BRs3OklJZ8PJ1X92wQZglQtSONS/ t9ijBYqOog0gbWremAIOPSiMKxzuQ8nIZdeO3Nth6Vft9Tp1YplnTh/fo nj7QQnIxCcvnakOmC8P7/u6iUXuOe5RPE75GIUF2avC0mmmzAApgweQlM c=; X-IronPort-AV: E=Sophos;i="5.93,226,1654560000"; d="scan'208";a="1042775550" Received: from pdx4-co-svc-p1-lb2-vlan3.amazon.com (HELO email-inbound-relay-iad-1d-f20e0c8b.us-east-1.amazon.com) ([10.25.36.214]) by smtp-border-fw-9103.sea19.amazon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Aug 2022 08:05:04 +0000 Received: from EX13D03EUC003.ant.amazon.com (iad12-ws-svc-p26-lb9-vlan3.iad.amazon.com [10.40.163.38]) by email-inbound-relay-iad-1d-f20e0c8b.us-east-1.amazon.com (Postfix) with ESMTPS id 099AD81830; Wed, 10 Aug 2022 08:05:01 +0000 (UTC) Received: from [192.168.10.191] (10.43.162.227) by EX13D03EUC003.ant.amazon.com (10.43.164.192) with Microsoft SMTP Server (TLS) id 15.0.1497.36; Wed, 10 Aug 2022 08:04:57 +0000 Message-ID: <5db2b670-f3df-57ea-bdc6-962a582ff2e4@amazon.com> Date: Wed, 10 Aug 2022 10:04:53 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.1.1 Subject: Re: shared-memory based stats collector - v70 Content-Language: en-US To: Greg Stark CC: Andres Freund , Tom Lane , Melanie Plageman , Kyotaro Horiguchi , Justin Pryzby , Thomas Munro , "David G. Johnston" , PostgreSQL Hackers References: <20220317073652.kz3uuh6le6vbfod4@alap3.anarazel.de> <20220325.142256.1649716600998659084.horikyota.ntt@gmail.com> <20220325.172418.1055357550509939415.horikyota.ntt@gmail.com> <20220402082102.ojdd2e6cobsmljvh@alap3.anarazel.de> <20220404041516.cctrvpadhuriawlq@alap3.anarazel.de> <20220405030506.lfdhbu5zf4tzdpux@alap3.anarazel.de> <20220406030008.2qxipjxo776dwnqs@alap3.anarazel.de> <1736122.1658333315@sss.pgh.pa.us> <83D73EC0-E3ED-4C98-A528-5E122278D553@anarazel.de> From: "Drouvot, Bertrand" In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.43.162.227] X-ClientProxiedBy: EX13D27UWA002.ant.amazon.com (10.43.160.30) To EX13D03EUC003.ant.amazon.com (10.43.164.192) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 8/9/22 6:00 PM, Greg Stark wrote: > On Tue, 9 Aug 2022 at 06:19, Drouvot, Bertrand wrote: >> >> What do you think about adding a function in core PG to provide such >> functionality? (means being able to retrieve all the stats (+ eventually >> add some filtering) without the need to connect to each database). > I'm working on it myself too. I'll post a patch for discussion in a bit. Great! Thank you! Out of curiosity, would you be also interested by such a feature for previous versions (that will not get the patch in) ? Regards, -- Bertrand Drouvot Amazon Web Services: https://aws.amazon.com