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.94.2) (envelope-from ) id 1tvl86-007nQm-2j for pgsql-hackers@arkaria.postgresql.org; Fri, 21 Mar 2025 22:46:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tvl83-0003mG-GB for pgsql-hackers@arkaria.postgresql.org; Fri, 21 Mar 2025 22:46:15 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tvl82-0003e3-S8 for pgsql-hackers@lists.postgresql.org; Fri, 21 Mar 2025 22:46:15 +0000 Received: from fout-b3-smtp.messagingengine.com ([202.12.124.146]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tvl80-000OYy-0D for pgsql-hackers@lists.postgresql.org; Fri, 21 Mar 2025 22:46:13 +0000 Received: from phl-compute-11.internal (phl-compute-11.phl.internal [10.202.2.51]) by mailfout.stl.internal (Postfix) with ESMTP id BA5501140147; Fri, 21 Mar 2025 18:46:10 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-11.internal (MEProxy); Fri, 21 Mar 2025 18:46:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1742597170; x=1742683570; bh=DWe/m+NGO5 1ZpeJarGiDcYSvVLuaVfZk47x60YEt6qY=; b=GuZeZYpHseI6BsNQF2BUgI4hbu Wsez/Ab+qPuL0a/8avzYtchem1UUiny2a1nyyTbt2KYSj9z6gjcv1lGiOqXkHMHt Prw3IkiszCm3ePW+Eel2LnDRU2MemHoR9x38NMCLTM663gPuBTP9j0CgrJY8nh6h hSOc773yGMHukj2Z3XlMtq+i4PEhfkvZkEB79dcU1QHNC2Bzsz82yD5lRWaBkeHC kW4QAGczJKqyPmih4XzJUEHUnUAeNbWqNIrdbNyaqsNKVz61veeKh48ZB/jVloy5 yMuOBWFjAktye/UakJbtqSRiFog+cWrYE2Gsa7Da8M+A3Dm5ZJwfqwyJW91g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc: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:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1742597170; x=1742683570; bh=DWe/m+NGO51ZpeJarGiDcYSvVLuaVfZk47x 60YEt6qY=; b=plBzPp9mYpJnZTHX0P6BUmIwfBzqiK/cuQQw/A0KTHr0TJwcj1b QRyAdD+fZU2/8YIuEadHyDeINBGcSEEQJgtBRFNMNmrDl58uSzSFhYUg+gZXOTdA SqtteZEdgbmQY1k2tPJWbg9b3V85WHcbZU+IWB3it5yTJhZ/gkrO0xc8EHnhhRy+ iueUbBjjKfHIEAUmdz00T4BXkGYJnk5cX8nnSpi7jWB2E50r2/wlESrD3TwcBin+ kdI6tmLekHmPtSM2tEAoNG1v0h4stK8Glr0alG0f02n2BC3D+OjOGbP2Koe1sbax qmX6P5UJ/EAfvwdGCFIKtPIA3addVA0EVaA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdduhedvfedvucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih gvnhhtshculddquddttddmnegfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvvefu kfhfgggtuggjsehgtderredttddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivg hruceomhhitghhrggvlhesphgrqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhep teelieefudffhffhtdetleeggeegfffhkeeuveetiefgudduvedutefggeeivdejnecuve hluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggv lhesphgrqhhuihgvrhdrgiihiidpnhgspghrtghpthhtohepfedpmhhouggvpehsmhhtph houhhtpdhrtghpthhtohepmhihohhnseguvggsihgrnhdrohhrghdprhgtphhtthhopehp ghhsqhhlqdhhrggtkhgvrhhssehlihhsthhsrdhpohhsthhgrhgvshhqlhdrohhrghdprh gtphhtthhopehmrgdutddtsehhohhtmhgrihhlrdgtohhm X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 21 Mar 2025 18:46:08 -0400 (EDT) Date: Sat, 22 Mar 2025 07:45:51 +0900 From: Michael Paquier To: Christoph Berg Cc: PostgreSQL Hackers , ma lz Subject: Re: query_id: jumble names of temp tables for better pg_stat_statement UX Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Ljs0EdCK+uTTqemp" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --Ljs0EdCK+uTTqemp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Mar 21, 2025 at 05:26:20PM +0100, Christoph Berg wrote: > Just one minor thing, I don't understand what you are trying to say in > this comment: >=20 >> +/* >> + * Note that the argument types are enforced for the per-field custom >> + * functions. >> + */ >> +#define JUMBLE_CUSTOM(nodetype, item) \ >> + _jumble##nodetype##_##item(jstate, expr, expr->item) In this one, I want to mean that we require a custom per-field function to look like that: _jumbleNodefoo_field(JumbleState *jstate, NodeFoo *expr, FieldType field); Rather than having more generic shape like that: _jumbleNodefoo_field(JumbleState *jstate, Node *exp, const unsigned char *item, Size size); So a custom function is defined so as the node type and field type are arguments. Perhaps this comment would be better if reworded like that: "The arguments of this function use the node type and the field type, rather than a generic argument like AppendJumble() and the other _jumble() functions." If you have a better idea, please feel free.. -- Michael --Ljs0EdCK+uTTqemp Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmfd7B8ACgkQnvQgOdby QH37wQ/+L8MMpAJqkUPL7ZyRImJmpxzF6YkZPJu18QA5twLlkaaozaBeV9ISXh46 tDs4P4YoSUPtQ+a9d7AiIJ+/tkIzSym/s9h2dDkd7o2qHgqM9nCkI1Mq/jbpBAFn QH3qGiY8br+6uTLF1ueKgJNdOGbUWAL4S2UQdIqRSXWjT3/3kGD6szp3hZ1QIjKS qYWPOLoetlW4UiSdr75OKIPA35b7Rq5wE4Gh9eWiHD/QdOq//1wPGynymxou1nkD uwXSDxeFUdJf6hWs0xOfZI67EXWKkkSLdPV3UbCIlDjamwP93E1yepRQAUm56o5l ZaL7oVPXmaDPrCYk/kaO/b46gbn/jnf9NyqStyIynX/xC3nTdG7Eu3ysfY9b1uLU /tGS5uWlyISuqrhxIfDb/zVeDYo46lmAFgwHLx6s4rbFiIBFapztMAWr+hR6fFyn F5S78L+J44e8SXXoN5RlKMZXgjLoLeYp2l5eirTI+81EUy+hooEi0EmO21bLG6YF 3N+RWaHkut5zrlGHBsxGpwfAc3X94wKTzOhpTAgJxWzJhs8uC5hCbF62j8tCr6LI ENGWzfZwGC3GiO6fUEGni4xLgdRuhqHQMVBYS06U3i3xVN06JnDiWOLj7VvFJg81 XkVYBANXheU0z9tKf0Chj6f9hPTTl/1rKwSqqBva/sbR4lRHYoQ= =9cG1 -----END PGP SIGNATURE----- --Ljs0EdCK+uTTqemp--