Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hhx9o-0007vb-SA for pgsql-general@arkaria.postgresql.org; Mon, 01 Jul 2019 14:19:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hhx9n-0007TW-Kw for pgsql-general@arkaria.postgresql.org; Mon, 01 Jul 2019 14:19:47 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hhx9n-0007TP-B6 for pgsql-general@lists.postgresql.org; Mon, 01 Jul 2019 14:19:47 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hhx9l-0007Fj-2Z for pgsql-general@lists.postgresql.org; Mon, 01 Jul 2019 14:19:46 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x61EJdLG027051; Mon, 1 Jul 2019 10:19:39 -0400 From: Tom Lane To: Dirk Mika cc: Thomas Kellerer , "pgsql-general@lists.postgresql.org" Subject: Re: Use ctid in where clause in update from statement In-reply-to: <209A99DE-CF4F-47E4-BBDF-530112814475@mikatiming.de> References: <209A99DE-CF4F-47E4-BBDF-530112814475@mikatiming.de> Comments: In-reply-to Dirk Mika message dated "Mon, 01 Jul 2019 10:02:21 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <27049.1561990779.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 01 Jul 2019 10:19:39 -0400 Message-ID: <27050.1561990779@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Dirk Mika writes: > I know I can join using the pk, but in oracle using the rowid is faster = so I wanted to know, if this is possible in PostgreSQL as well. Existing Postgres releases are not very bright about joins on CTID --- basically merge join is the only plan type you can get for that. v12 will improve that somewhat. regards, tom lane