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 1pDUzL-00029y-Mw for pgsql-hackers@arkaria.postgresql.org; Thu, 05 Jan 2023 18:29:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pDUzK-00082u-5q for pgsql-hackers@arkaria.postgresql.org; Thu, 05 Jan 2023 18:29:14 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pDUzJ-00082k-K8 for pgsql-hackers@lists.postgresql.org; Thu, 05 Jan 2023 18:29:13 +0000 Received: from mail-westcentralusazon11012011.outbound.protection.outlook.com ([40.93.200.11] helo=CY4PR02CU008-vft-obe.outbound.protection.outlook.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pDUzE-0002ZT-6k for pgsql-hackers@lists.postgresql.org; Thu, 05 Jan 2023 18:29:11 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KuU86BiBJk4UKBfqa0t5Da024Wa3Mjpu6KAO4lyHM+NGcx3bMq+uxLD4zTD24bMaMKNAXuuDdB+CFjOCV7RFdWRp4KFRhS92I885iZgRwvzElNSpO7BiVwLVPWc6rpp/LH7l/QAEzcfyBZvFpIW1UN+fpM11OUykZ42CmN0XFPsz7J4xiwtwRv7Qip0quCC6yzbwV9d7hxTieBcIb8hK+I/szcTtAZRds4RRyAKKaKXtY0b9WKlyGQDCw+KHR8X8hdXzIVgxgQwjUoegsRbuawnkYAkDbyLdtbLslTuzW+Ex1XI95aly7ZQc5whn60uY3CGqmU/o5V2oNzYLjn+exg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=kaRy41SaTKHMZYDxu0+l1kEJ9jyifRfz2BQ4UuUlxCs=; b=fYYseQBE/4tjOSlV+mJAcX4ofS77UbYQQgUZ945fnh2gsMERXbqVwhGEc0YQyldN0V07rXx8uL6KclG4fOApYo2l6pn4dxXaMZVgbiw81gaqCeXc8ztceJz/Mi8D8DCx5iS8Qa8ZAXq1/X6SD0fKxjxSuA6uojYdZwJURlEf6US3wbKUx2qLbDhqdbOjHc/l9JsQYyDTec3ujyihOH9m6e6JtZ0KWfrrB3PKR8ULtjzgn8rMcLWgzD6aq1Ff6QKVvWpuirn5MN85Xd+rHk7thpIbgKF5MUULLgfjWxX2s85+ga1ysHp5uImgVdXru0zqe7KWPuzqMvuTDDMVvU/fsA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vmware.com; dmarc=pass action=none header.from=vmware.com; dkim=pass header.d=vmware.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vmware.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kaRy41SaTKHMZYDxu0+l1kEJ9jyifRfz2BQ4UuUlxCs=; b=h0mPCcHk97enWkM4EU45rDrifVBctEw0qA7/jAuUcHWYFCQfNe9TlruD8QjqoNrvNRW1bd0WKzZI0KNkvG+vQ4KDLO+gut1Kb67uTXbAj/OVCWOlaUQ26gCYSUeyVGMSxL9fjRFu+4zTQVaTRN1obGa8eSN9ndFkPyCetEEG9vg= Received: from MN2PR05MB6879.namprd05.prod.outlook.com (2603:10b6:208:193::17) by DM5PR05MB3546.namprd05.prod.outlook.com (2603:10b6:4:44::36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5944.18; Thu, 5 Jan 2023 18:29:03 +0000 Received: from MN2PR05MB6879.namprd05.prod.outlook.com ([fe80::f812:65ba:a174:945c]) by MN2PR05MB6879.namprd05.prod.outlook.com ([fe80::f812:65ba:a174:945c%7]) with mapi id 15.20.5944.019; Thu, 5 Jan 2023 18:29:03 +0000 From: Hari krishna Maddileti To: PostgreSQL Hackers , "pgsql-hackers@lists.postgresql.org" Subject: Support for dumping extended statistics Thread-Topic: Support for dumping extended statistics Thread-Index: AQHZITJBgP44nSWfwUKD8vMaewyHAQ== Date: Thu, 5 Jan 2023 18:29:03 +0000 Message-ID: Accept-Language: en-US Content-Language: en-IN X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vmware.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: MN2PR05MB6879:EE_|DM5PR05MB3546:EE_ x-ms-office365-filtering-correlation-id: a8894203-860a-44fe-6536-08daef4ab8b1 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: /x/xbiGIf0nCw+ASwg8lhxdPsA9jTtAU2/SqndRd21YaW/3MtZ4eHJIQZr1b9bYTpi3DujZxzbXJBot79U7drl6/OHQkb8AE2927bVLvapPm09LJsw69WRLX8YBB9Tai4KJHF0KKT7JQK9C0oTFH2FUhY7ONrNWyAEZKKS8TdYWeK+uO9CeOSmXAy/Gy7voZx4YlhTjoZ8MEAj0kjFm6/73u3Ca74fwrpSoMztHmwQ/c7z6HfCioFbruf2EbLad9kL+XTtQnMpsAHIDuBASEaFyxCBbCePMcLuYQAH0RQTOXkjtF+TLeAx8NioloT5eSE1LGXwlGsiB835KPeCQtGF2Ugp7QFn+rcK/+AYyNjo4Mk5mik60ozH9XvLA8LDt8yX+bq6YoQPpuT7poHT8N+G05/EWaaJ4WuUw0COwlDqApKNa3UDq+h1qW27/t8CcolZdSW3ZuDwqRPcUNZwgPoPY5Ah3HZFtcr7UUVGP0zlhHDMZZbVC4iVpj+Wx7SgWzOqZa7UNr8iUMPIN/AGF/yEfoFTUy/mITIgYaieIDPYkN1UJVLg8D5x92Z5BQ8QTK5AD/k2Q+FcD52B52Po32xI54gM0rSdNinf/LxzvjceprWo/44z9nHZDfKoIXA/2DeeUn+1pFowFWT9EXhAnQsKCNHwmk/B3ZSoxosg6LBnzvIc5ZiMJoMUlM4/MGM1WmC04IZzORjVf23+/YG3Qnz2Bi14qZ54iRx2b+chQS1mbZ3heL56Ynwtd7+RKNw2bp x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN2PR05MB6879.namprd05.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(39860400002)(366004)(376002)(396003)(136003)(346002)(451199015)(83380400001)(86362001)(55016003)(8936002)(38070700005)(122000001)(66476007)(33656002)(66946007)(316002)(66446008)(64756008)(38100700002)(66556008)(4744005)(91956017)(9686003)(2906002)(110136005)(5660300002)(76116006)(6506007)(9326002)(186003)(41300700001)(71200400001)(8676002)(7696005)(478600001)(52536014);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?/aBinYnxuiZmABHYz1u2uTD6Mx3UaItO88DfA8jnRNMO0J5HPd4vpUf/mYN3?= =?us-ascii?Q?9Vmn1M1uQJmIlAg2MTjoCeZ0c4v/p2Exz6uYoI3dgfbVEH0te2UF0rXW/jXJ?= =?us-ascii?Q?wHl9WFVkm5HM5ZiXXKReHCZPQ6Bd5QBdE0cp6gkvplRnG7fzpr+PGoAtRmw9?= =?us-ascii?Q?5HmeL0HNXVmdDk4SYjUa89lrXz3GefeOkCr4tOiCccjNyuC94Ysbli2rrEkC?= =?us-ascii?Q?YRARh60DDmesen92QQALI/iVqJifMEEJQCgS6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up1vyZ11x03IjzXa8K1byTucpewc/aJbLSaxUnDcSoLXMOdk9UQ?= =?us-ascii?Q?Kv15cFNFXY/iCOkqqm8ZGxi56Lrwqh+FkFp5DE8Fqi0gXtfyyYSXtM4lDwKh?= =?us-ascii?Q?hhbcyA1UV4KSy7mueTUSZe7jYsPr6uHLgsvQMYKE6+1gQvIPDa9a6KLvfgyN?= =?us-ascii?Q?4TrP0lsCRHvX27+P1X58+ZKAphTuOEmpEWU/WRCXTa+OD34esOBkWth6XRhE?= =?us-ascii?Q?6O+ZS6ACG7nKM5vq/zjGC5nwtvEvJWpN2RpSM6vgWzhYztX7AV/5oWfxg15c?= =?us-ascii?Q?Ix2YMnf1dJYXwlwP3OKWb3mE4ELo0D2M9fnOAr+vI2JzuaRhaHJlnXi3rmeq?= =?us-ascii?Q?X2jsGWwKNhQsnXRa/miXJ+mP9Ei88vKXB26HaTtVRkgW+Ri0ya/fUGWmi6qQ?= =?us-ascii?Q?OIwxrhGGWJLMTYv/Pth/xB9vdJtTZUqTv//UstGNOyo9/Z4Q570mC5I9/GKN?= =?us-ascii?Q?Lk2QyZB5owLrANLohHFuJhd+b+xyJ3dfgZzD/tCc8m1GCq1MSiLVKHDsnDwZ?= =?us-ascii?Q?mz6eNQ=3D=3D?= Content-Type: multipart/alternative; boundary="_000_MN2PR05MB68795FCDB5B560D350084753B6FA9MN2PR05MB6879namp_" MIME-Version: 1.0 X-OriginatorOrg: vmware.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MN2PR05MB6879.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a8894203-860a-44fe-6536-08daef4ab8b1 X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Jan 2023 18:29:03.0973 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b39138ca-3cee-4b4a-a4d6-cd83d9dd62f0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: jyk7o9hmlJQCNeZok518uHKNHukteFbxps+YgFGd4rs1fNIns3Bs+1rZsQSGkF3DWjb8MqWfC/USarRUhvXhxg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR05MB3546 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --_000_MN2PR05MB68795FCDB5B560D350084753B6FA9MN2PR05MB6879namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Team, In order to restore dumped extended statistics (stxdndistinct, stxddependen= cies, stxdmcv) we need to provide input functions to parse pg_distinct/pg_d= ependency/pg_mcv_list strings. Today we get the ERROR "cannot accept a value of type pg_ndistinct/pg_depen= dencies/pg_mcv_list" when we try to do an insert of any type. Approch tried: - Using yacc grammar file (statistics_gram.y) to parse the input string to = its internal format for the types pg_distinct and pg_dependencies - We are just calling byteain() for serialized input text of type pg_mcv_li= st. Currently the changes are working locally, I would like to push the commit= changes to upstream if there any usecase for postgres. Would like to kno= w if there any interest from postgres side. Regards, Hari Krishna --_000_MN2PR05MB68795FCDB5B560D350084753B6FA9MN2PR05MB6879namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi Team,

 

In order to restore dumped exte= nded statistics (stxdndistinct, stxddependencies, stxdmcv) we need to provi= de input functions to parse pg_distinct/pg_dependency/pg_mcv_list strings.<= o:p>

 

Today we get the ERROR "ca= nnot accept a value of type pg_ndistinct/pg_dependencies/pg_mcv_list" = when we try to do an insert of any type.

 

Approch tried:

- Using yacc grammar file (stat= istics_gram.y) to parse the input string to its internal format for the typ= es pg_distinct and pg_dependencies

- We are just calling byteain()= for serialized input text of type pg_mcv_list.

 

Currently the changes are worki= ng locally,  I would like to push the commit changes to upstream if th= ere any usecase for postgres.   Would like to know if there any i= nterest from postgres side.

 

Regards,

Hari Krishna<= /p>

--_000_MN2PR05MB68795FCDB5B560D350084753B6FA9MN2PR05MB6879namp_--