From: Tom Lane <tgl@sss.pgh.pa.us>
To: Dirk Mika <Dirk.Mika@mikatiming.de>
Cc: Thomas Kellerer <spam_eater@gmx.net>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Use ctid in where clause in update from statement
Date: Mon, 01 Jul 2019 10:19:39 -0400
Message-ID: <27050.1561990779@sss.pgh.pa.us> (raw)
In-Reply-To: <209A99DE-CF4F-47E4-BBDF-530112814475@mikatiming.de>
References: <C8D480EC-AFF2-40CC-8BD3-754A1204011A@mikatiming.de>
<d7a5335e-947b-be84-d5c7-11203cb086b8@gmx.net>
<209A99DE-CF4F-47E4-BBDF-530112814475@mikatiming.de>
Dirk Mika <Dirk.Mika@mikatiming.de> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, Dirk.Mika@mikatiming.de, spam_eater@gmx.net
Subject: Re: Use ctid in where clause in update from statement
In-Reply-To: <27050.1561990779@sss.pgh.pa.us>
References: <C8D480EC-AFF2-40CC-8BD3-754A1204011A@mikatiming.de> <d7a5335e-947b-be84-d5c7-11203cb086b8@gmx.net> <209A99DE-CF4F-47E4-BBDF-530112814475@mikatiming.de> <27050.1561990779@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox