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 1qJnO4-0000vl-9h for pgsql-hackers@arkaria.postgresql.org; Thu, 13 Jul 2023 03:53:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1qJnO3-0002ba-3U for pgsql-hackers@arkaria.postgresql.org; Thu, 13 Jul 2023 03:53:03 +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 1qJnO2-0002b0-QS for pgsql-hackers@lists.postgresql.org; Thu, 13 Jul 2023 03:53:02 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qJnNv-0007Q9-Lt for pgsql-hackers@postgresql.org; Thu, 13 Jul 2023 03:53:01 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 1247F3200903; Wed, 12 Jul 2023 23:52:53 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Wed, 12 Jul 2023 23:52:54 -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:sender :subject:subject:to:to; s=fm2; t=1689220373; x=1689306773; bh=eC yuwB3b0o2kTvOnfAey1XG0BJaTHkX/u/fLwBNNo+A=; b=2LEQtKrH0XkgAyvpUK d+cAJU2PKrcv/7sdMLEN5lfgZjwJo28JZNH3BbLNFG2DfFZGKX+0Lkkzzb+s11yN JYHSCQm9XifkzFP8Bw4YvHZEcisoKAW7zulLOUiy1Kq/xYxk7MB0oBeyoBw/g+bl GYKtnCw6Ijx2ILw5Ce6ivflfCPy4bPo6h91FQCmgBpsfQvGWaK21HNrfaYi/PIxv HO/NuQfNMY7zMtoZNd8WaLghYgjnbpsvqovaQ8odPOTFM2bGoTkaTq3LoUDNLlpD lRLoAnmQdkDKvVCH4KYGu2GK8l5spEz5Jho7Su9xD7CXfN7xcHE7MBn4gFmFmTNW WyCQ== 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:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1689220373; x=1689306773; bh=eCyuwB3b0o2kT vOnfAey1XG0BJaTHkX/u/fLwBNNo+A=; b=XKAQWX7ozVk0uI/eVjd1g8VIuSVXJ CvyXWOXqNXrEkDx/UWHXqF5ONxkcsjGaAmdd8CUWiGBwGRTIimf3gwTVbXoUSc/g vjOlkjG2oHP9RJRogvntcCX/XPpjrbprYSa9Vcr+LjzKy6Cj7a6/D9GN6Y/Du37C B9gqHC2Ip9pR/416JyUFTRNi1tykW0sqUiW+WmxwLMLLxkY1eCIMLikVn0GnPsQQ 2rR8JQp27mC2mKap2HcIMXr+g5jroRqWlXlTITyy1yz+tyMJFrfIgPYO2aXNy1J1 DFW34KOsSoEymM3ZOUGCzIIDwhJ7uYeSrFvixGMMOjSGPh1QAntNiv6ww== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrfeefgdejgecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdejtddmnecujfgurhepfffhvfevuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpeetleeifedufffhhfdtteelgeeg geffhfekueevteeigfduudevudetgfegiedvjeenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 12 Jul 2023 23:52:51 -0400 (EDT) Date: Thu, 13 Jul 2023 12:52:49 +0900 From: Michael Paquier To: Tristan Partin Cc: pgsql-hackers@postgresql.org Subject: Re: Use COPY for populating all pgbench tables Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="BwGbaTwLFH7+oT0C" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --BwGbaTwLFH7+oT0C Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jul 12, 2023 at 09:29:35AM -0500, Tristan Partin wrote: > On Wed Jul 12, 2023 at 1:06 AM CDT, Michael Paquier wrote: >> This would use the freeze option only on pgbench_accounts when no >> partitioning is defined, but my point was a bit different. We could >> use the FREEZE option on the teller and branch tables as well, no? >> Okay, the impact is limited compared to accounts in terms of amount of >> data loaded, but perhaps some people like playing with large scaling >> factors where this could show a benefit in the initial data loading. >=20 > Perhaps, should they all be keyed off the same option? Seemed like in > your previous comment you wanted multiple options. Sorry for not reading > your comment correctly. I would have though that --partition should only apply to the pgbench_accounts table, while FREEZE should apply where it is possible to use it, aka all the COPY queries except when pgbench_accounts is a partition. Would you do something different, like not applying FREEZE to pgbench_tellers and pgbench_branches as these have much less tuples than pgbench_accounts? -- Michael --BwGbaTwLFH7+oT0C Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmSvdREACgkQnvQgOdby QH39bRAAiSfMJFxvaVsLeY+LDG5XyK35bWsCCDGWZTCyPsooIxAP1vPvVQybGamd LPEf1M55/92aK/UdiHRp8B5erGZDf2aEYqqy+U6Afgo4/82Sx1ntyYGApAkjbl5u +cydWnH7Aj7AiCuDuNPdP/qYW8PfxiNQY3FikL63JGp/KcXV65p3BHx7kuacGA7F +Se1W592iduxxqJbFM1vV6rjDBeSrMhI6zGzKsTA+wowLBIPjgpS0uQl35185FYp DrV+oHzhx8EGWKrG3SG/dSDS0pJ5rZQlzEkd6d5syW3Q4EWxj6bdoIl5D2hUrlpl AvPeWK2NGkMVr7qAL19yQOkOEodVjm5isXB1HT5OEc38nHAP3RW8LPkcnIgcCjhs ZvvkCciKizHQx5IaiicTlPbWo/Uz3+Q0XaL/ui7yV7HUpcXtp6fn5LqkzyKobaS2 nUui2KVDudJRETFpU7Q8UwUT5dW+pdDYoLpNrl5FB6vHq6oimSB59gxKjt1jDzlu IJnoo2csMTGhnYjwPwTJDT8crpZ+2d+iuuluITbormgzsuJcvBDfe/O/B8fhMaMm aQC2CoJ8rWnGT/x8TgMvtIl6gFsSppklmUQ/JGOIBdOWHLkNz9gQENDJLH2q2gh3 NA98Fw9Hrw+HEwbBVIDRaMQJ3zXmgm6wzpaD3an6U+7WdfSd+C4= =W0jN -----END PGP SIGNATURE----- --BwGbaTwLFH7+oT0C--