Re: Use ctid in where clause in update from statement

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Dirk Mika <Dirk(dot)Mika(at)mikatiming(dot)de>
Cc: Thomas Kellerer <spam_eater(at)gmx(dot)net>, "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Use ctid in where clause in update from statement
Date: 2019-07-01 14:19:39
Message-ID: 27050.1561990779@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Dirk Mika <Dirk(dot)Mika(at)mikatiming(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ron 2019-07-01 17:27:33 Statistics tables not being updated anymore
Previous Message Dirk Mika 2019-07-01 12:13:25 Re: Use ctid in where clause in update from statement