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 1oaaT0-0003VB-Ec for pgsql-committers@arkaria.postgresql.org; Tue, 20 Sep 2022 10:27:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oaaSy-0005eT-Vq for pgsql-committers@arkaria.postgresql.org; Tue, 20 Sep 2022 10:27:00 +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 1oaaSy-0005eK-Oi for pgsql-committers@lists.postgresql.org; Tue, 20 Sep 2022 10:27:00 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oaaSw-0005uj-88 for pgsql-committers@lists.postgresql.org; Tue, 20 Sep 2022 10:26:59 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id AE6AC32009DB; Tue, 20 Sep 2022 06:26:56 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Tue, 20 Sep 2022 06:26:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version: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=1663669616; x=1663756016; bh=2 rj/6nJlwXG5MPlTzZ+8SQScRTl6H4RPEjcB7uLbkDw=; b=Xen4oHHReMpU2beR8 wzwZDRIrEcu/+xYq5tRtmtB4H85NC/ThIsrSwU19rKrCk04ltTFGe8nwKIRBJ7iD FF6XPBpQHcarSEEUonFa0EvQK4qGlsZ3DSUgzA4mZlzZ/AyZBG3Hy1vJ/HfZZ9o4 x248A1cUlJd19GC7K+a5eQF4kJXAYvz10G6fhk/YqlwQ46GqI5xAWJ1ZTWUyV73G 6x/09BmPQdqGJc0nMBYNS3YLdxaT966nsF76KI0mc4+MaO9HOPp0vOIpSn60EYFr aYf0OxRrJpVWYyNGlJbJAE4BjN5uHvMLHbAI3o7dPd10c53w1BiKEjTHn/dKL4Xr gFIwg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfedvledgvdelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucgoufhushhpvggtthffohhmrghinhculdegledmne cujfgurhepfffhvfevuffkgggtugfgjgesthekredttddtjeenucfhrhhomheptehlvhgr rhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh eqnecuggftrfgrthhtvghrnhepheekleeihfetffdtkeefvdeiudekudekhedvgeeitddu ffffleelkedtieegvddvnecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomh dpghhoohhglhgvrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehm rghilhhfrhhomheprghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 20 Sep 2022 06:26:55 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 85BD638F; Tue, 20 Sep 2022 12:26:52 +0200 (CEST) Date: Tue, 20 Sep 2022 12:26:52 +0200 From: Alvaro Herrera To: Tom Lane Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Add support for MERGE SQL command Message-ID: <20220920102652.zfbxjhxjeymylrdz@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <540344.1663627199@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2022-Sep-19, Tom Lane wrote: > I wrote: > > It might be better to change these to temp tables. You'd then > > have to filter the temp schema out of the results; but since you > > have a filtering function anyway, that doesn't seem too hard. > > Or even easier, ALTER TABLE SET autovacuum_enabled = 'false' > before populating them. Thanks, I think I'll add WITH (autovacuum_enabled=false) to all the CREATE TABLE statements there, as attached. Tests running now, will push shortly. -- Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.com/ "Ed is the standard text editor." http://groups.google.com/group/alt.religion.emacs/msg/8d94ddab6a9b0ad3