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 1oaPQw-0003TB-HT for pgsql-committers@arkaria.postgresql.org; Mon, 19 Sep 2022 22:40:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oaPQv-0006cc-DC for pgsql-committers@arkaria.postgresql.org; Mon, 19 Sep 2022 22:40:09 +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 1oaPQv-0006cS-5t for pgsql-committers@lists.postgresql.org; Mon, 19 Sep 2022 22:40:09 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oaPQo-0001mH-W5 for pgsql-committers@lists.postgresql.org; Mon, 19 Sep 2022 22:40:08 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 28JMdxDp540345; Mon, 19 Sep 2022 18:39:59 -0400 From: Tom Lane To: Alvaro Herrera cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Add support for MERGE SQL command In-reply-to: <537759.1663625579@sss.pgh.pa.us> References: <537759.1663625579@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Mon, 19 Sep 2022 18:12:59 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <540343.1663627199.1@sss.pgh.pa.us> Date: Mon, 19 Sep 2022 18:39:59 -0400 Message-ID: <540344.1663627199@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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. regards, tom lane