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 1q4TIi-0008AG-00 for pgsql-hackers@arkaria.postgresql.org; Wed, 31 May 2023 21:24:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1q4TIg-00053f-Fk for pgsql-hackers@arkaria.postgresql.org; Wed, 31 May 2023 21:24:10 +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 1q4TIf-00053W-KF for pgsql-hackers@lists.postgresql.org; Wed, 31 May 2023 21:24:10 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1q4TIb-003MLY-2C for pgsql-hackers@postgresql.org; Wed, 31 May 2023 21:24:09 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id F2CE55C012E; Wed, 31 May 2023 17:24:03 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Wed, 31 May 2023 17:24:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eisentraut.org; h=cc:cc:content-transfer-encoding:content-type:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to; s=fm3; t=1685568243; x=1685654643; bh=qffbJdB0N0Jgf4+5vxfjRnMUn RVehgZBdzZhlZMQcwQ=; b=SHaEl3Pd8oGRqSutGPNkMbek+Exyjt+5n3VBO5DqE sbaZYLalI9IJuEMBv9ZOHciYDRP3t9dzd810m1rnO7Vxwv6cM4S+0bP8J4FWPbqN AZQWhaZleBV8YRGoBQfnDXsZdRPXHZirUF3g4Z8sK3lJsydXRB8ft+C0415kdxU5 s+PVlqKHBokrap8VnOJSuVn066JZvOSTCMc7SVFJy1MpSLqW8aLru3CGiwCoaR8E VUQ2ZWBHoZ26m+K3l1s+9KOyamIv5EaqHch9H+7GHNBrEAjKBRlfayjL1K5Y7d2d SG14ioxQylh5HVeyVAt8EfIIr/F5DbeoBgmEA1VbI8vWQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1685568243; x=1685654643; bh=qffbJdB0N0Jgf4+5vxfjRnMUnRVehgZBdzZ hlZMQcwQ=; b=RVKKYBcdwPdk/CRCXEpYww/ID1mhKgkRJNMG46JFz23F2embnuN 3rvqt3Xr4pzx8hJH2b5RdHu6QgxiOzXUe42y0R2oJu7ILMsJaJU+Hzbbk2K0aWuW 1TUBCZ3YcmivgiqiiJmFY9DiKVReHG7TSPgmwsYwSYLRpZxxBfUGooq4cTs7kL2X L8zL2y8kQA4xBQZ3SryfWHU1EkWfLLXa3N/q4r2VLRmXxtPY6K0cdPAsjn3VjRBZ PlAiLr4zAxUXE3tEqmYFnyPOAxBIUUJaqSW13dJ0UJ8Mz3/swQf7o0CevT0vGUC5 SdB/ZVMtRLUGLfP21I4fk5hSc3qJlsAOe1Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeekledgudehlecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefkffggfgfuvfevfhfhjggtgfesthekredttdefjeenucfhrhhomheprfgv thgvrhcugfhishgvnhhtrhgruhhtuceophgvthgvrhesvghishgvnhhtrhgruhhtrdhorh hgqeenucggtffrrghtthgvrhhnpeelvdfgfedujeejuddvffekkeekvdefieefleeifefg hfeiieevudevieehieefjeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpehpvghtvghrsegvihhsvghnthhrrghuthdrohhrgh X-ME-Proxy: Feedback-ID: ie0a040ee:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 31 May 2023 17:24:03 -0400 (EDT) Message-ID: <6e928f3b-c1fd-c2bb-bfc5-20cb641c7252@eisentraut.org> Date: Wed, 31 May 2023 17:24:01 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.11.2 Subject: Re: generate syscache info automatically Content-Language: en-US To: =?UTF-8?Q?Dagfinn_Ilmari_Manns=c3=a5ker?= Cc: pgsql-hackers References: <75ae5875-3abc-dafc-8aec-73247ed41cde@eisentraut.org> <871qiwtovy.fsf@wibble.ilmari.org> From: Peter Eisentraut In-Reply-To: <871qiwtovy.fsf@wibble.ilmari.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 31.05.23 13:02, Dagfinn Ilmari Mannsåker wrote: > For other patterns without the optional bits in the keyword, it becomes > even simpler, e.g. > > if (/^DECLARE_TOAST\(\s* > (?\w+),\s* > (?\d+),\s* > (?\d+)\s* > \)/x > ) > { > push @{ $catalog{toasting} }, {%+}; > } > > > I'd be happy to submit a patch to do this for all the ParseHeader() > regexes (in a separate thread) if others agree this is an improvement. I would welcome such a patch.