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 1mOaaU-0005tj-BG for pgsql-hackers@arkaria.postgresql.org; Fri, 10 Sep 2021 07:04:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mOaaR-000379-3R for pgsql-hackers@arkaria.postgresql.org; Fri, 10 Sep 2021 07:04:35 +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 1mOaaQ-000371-OV for pgsql-hackers@lists.postgresql.org; Fri, 10 Sep 2021 07:04:34 +0000 Received: from smtp-fw-9102.amazon.com ([207.171.184.29]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mOaaK-00023x-6t for pgsql-hackers@lists.postgresql.org; Fri, 10 Sep 2021 07:04:33 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1631257469; x=1662793469; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=3hPQkOQEO2DIH2lNzhfy6U7kKgDTOLQ+TCbUz7DqDkY=; b=tew8X+uD5gBR4ntVIZ6AWdU7bl0gOy18zVIx4zzpOH9j/6VEJ8yw7TJl SUQf02MjY3pUqqQpmdPlxtAd74KCb5zWMlIQOjUk/vYg4p/StxZpC6Ujt rneE9Qzmc5PG6DzkkJAoyjhLqvR277Ltqrbj6FeBIwc8lKvgAG3BzdowQ U=; X-IronPort-AV: E=Sophos;i="5.85,282,1624320000"; d="scan'208";a="158955261" Received: from pdx4-co-svc-p1-lb2-vlan3.amazon.com (HELO email-inbound-relay-2a-c5104f52.us-west-2.amazon.com) ([10.25.36.214]) by smtp-border-fw-9102.sea19.amazon.com with ESMTP; 10 Sep 2021 07:04:20 +0000 Received: from EX13D03EUC003.ant.amazon.com (pdx1-ws-svc-p6-lb9-vlan3.pdx.amazon.com [10.236.137.198]) by email-inbound-relay-2a-c5104f52.us-west-2.amazon.com (Postfix) with ESMTPS id A973CA1C60; Fri, 10 Sep 2021 07:04:18 +0000 (UTC) Received: from 38f9d36c4abb.ant.amazon.com (10.43.160.137) by EX13D03EUC003.ant.amazon.com (10.43.164.192) with Microsoft SMTP Server (TLS) id 15.0.1497.23; Fri, 10 Sep 2021 07:04:14 +0000 Subject: Re: pg_walinspect - a new extension to get raw WAL data and WAL stats To: "Bossart, Nathan" , Bharath Rupireddy , PostgreSQL Hackers CC: "satyanarlapuram@gmail.com" , "marvin_liang@qq.com" , "actyzhang@outlook.com" , Ashutosh Sharma References: From: "Drouvot, Bertrand" Message-ID: <03c3fcd8-ac01-e6e2-a321-2808d07b11da@amazon.com> Date: Fri, 10 Sep 2021 09:04:10 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [10.43.160.137] X-ClientProxiedBy: EX13D20UWA003.ant.amazon.com (10.43.160.97) 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 On 9/10/21 12:49 AM, Bossart, Nathan wrote: > On 9/8/21, 6:49 AM, "Bharath Rupireddy" wrote: >> How about we create a new extension, called pg_walinspect (synonymous >> to pageinspect extension) with a bunch of SQL-callable functions that >> get the raw WAL records or stats out of a running postgres database >> instance in a more structured way that is easily consumable by all the >> users or DBAs or developers? We can also provide these functionalities >> into the core postgres (in xlogfuncs.c) instead of a new extension, >> but we would like it to be pluggable so that the functions will be >> used only if required. > +1 > > Nathan > +1 Bertrand