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 1tgi97-00Cvis-7r for pgsql-hackers@arkaria.postgresql.org; Sat, 08 Feb 2025 10:33:09 +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 1tgi93-007vgU-Ak for pgsql-hackers@arkaria.postgresql.org; Sat, 08 Feb 2025 10:33:05 +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 1tgi92-007vgM-DR for pgsql-hackers@lists.postgresql.org; Sat, 08 Feb 2025 10:33:05 +0000 Received: from fhigh-b1-smtp.messagingengine.com ([202.12.124.152]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tgi90-003vg9-0Y for pgsql-hackers@lists.postgresql.org; Sat, 08 Feb 2025 10:33:03 +0000 Received: from phl-compute-01.internal (phl-compute-01.phl.internal [10.202.2.41]) by mailfhigh.stl.internal (Postfix) with ESMTP id B5BA5254010C; Sat, 8 Feb 2025 05:33:01 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-01.internal (MEProxy); Sat, 08 Feb 2025 05:33:01 -0500 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 :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1739010781; x=1739097181; bh=g Uco121Al4TkBDgs+npyYJHu8TW5XECkGc5b1t4g+oM=; b=Mrj4U8UR9ojRqo8VN sFYspkR9faGq+t5WRQ/PAik9RtM9mykh0YjJRQQLrp/J7UUQvDC1zpu1h+wKJc6+ D0S/s+6oevkGiVTGPh/AudQCBGWmyzQ7o2E4lp2nB2gg++UthNxgILu3W6tVp/lm 1mxCG/sbF3E1YvwP3uupVEuLa/vTt8M1NgdLk472iR0VA5FQHr3xF5E553u2Z4CC QzxJASXbNmMqbM7FMci8wWr4dPwZj4u2GIPUcL2RKathh5rjs+7xDWfqxxSDMc7N vX9SEwIKk/dfWwuYaKU0jWka+EDwE7ECb3m7Br3YvSjbNcMZhkdHZkJwuRFUq9f9 jEUqg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdefudeljecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpeffhffvvefukfggtggugfgjsehtkeertddttdej necuhfhrohhmpemllhhvrghrohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvh hhrdhnohdqihhprdhorhhgqeenucggtffrrghtthgvrhhnpedvheeuffehgfeukeeufeeh hefghfeugfefudekjeevudffgeffkeegffffveegheenucffohhmrghinhepvghnthgvrh hprhhishgvuggsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehm rghilhhfrhhomheprghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrghdpnhgspg hrtghpthhtohepfedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepmhgvlhgrnhhi vghplhgrghgvmhgrnhesghhmrghilhdrtghomhdprhgtphhtthhopehpghhsqhhlqdhhrg gtkhgvrhhssehlihhsthhsrdhpohhsthhgrhgvshhqlhdrohhrghdprhgtphhtthhopehs rdhtrghtrghrihhnthhsvghvsehpohhsthhgrhgvshhprhhordhruh X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 8 Feb 2025 05:33:00 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1739010778; bh=0K+8FApGTcaFtbq6X0rU0fkUACCxcmTS7MWLp6CgKtQ=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=hjnzaoVyuHC5+XMcwyTOv2CzGiyod35eVFY3ybpm6gettmXBfsp5ljhdcRwKemBHI DdevlAPIH6YIZuXI4fcJxWoKg+Xz4HqMX3Au8qF+LUWQK0PTz1F4EJEt15jDrpZt4a CwWPZHa4yXibEZBzgMULJqJeoA5tMz9Ca82zg+jgKIIlAngil1PdmhuLP2GButNDFs N6Gs+vf3F2V/WM4wt5AVRl97UUtBGzd4eQn+5UWVjLB/KZMkk1zkFnaIqetiCjTpFk EeP1B9equp7GN+tpGBBsQBiJqQ4qiXNrJoffJkJ18j+JE3DNt/xWwFd4VjkrDwwwYd cVqouKJ+1vjYw== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id 9E9B48D; Sat, 8 Feb 2025 11:32:58 +0100 (CET) Date: Sat, 8 Feb 2025 11:32:58 +0100 From: =?utf-8?Q?=C3=81lvaro?= Herrera To: Melanie Plageman Cc: Sergey Tatarintsev , "pgsql-hackers@lists.postgresql.org" Subject: Re: pgbench with partitioned tables Message-ID: <202502081032.3q4n6a3uihw3@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2025-Feb-07, Melanie Plageman wrote: > Okay, I've stared at this a bit, and it seems basically fine the way > it is (I might add a bit more whitespace, clean up the commit message, > etc). So I'm interested in committing it. I will admit that having > never committed anything to pgbench, I'm a bit nervous. So, give me a > couple days to work up the nerve. Sounds good. I only wanted to say that I would use PQexecParams() instead of PQexec() in the new function, avoiding the psprintf and pfree, and also that initializing relkind to RELKIND_RELATION is strange and probably unnecessary. -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/ "Cuando mañana llegue pelearemos segun lo que mañana exija" (Mowgli)