pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Thomas Kellerer <spam_eater@gmx.net>
Cc: pgsql-performance@postgresql.org
Subject: Re: Using ctid column changes plan drastically
Date: Tue, 24 Jul 2012 11:55:25 -0400
Message-ID: <22819.1343145325@sss.pgh.pa.us> (raw)
In-Reply-To: <jumcuv$26n$1@dough.gmane.org>
References: <julsfr$otg$1@dough.gmane.org>
	<21308.1343139781@sss.pgh.pa.us>
	<jumcuv$26n$1@dough.gmane.org>

Thomas Kellerer <spam_eater@gmx.net> writes:
> Tom Lane, 24.07.2012 16:23:
>> IIRC, type tid doesn't have any hash support.

> So the "bad" plan is expected?

Joins on tid columns just aren't supported very well at the moment.
Partly that's from lack of round tuits, and partly it's because it
doesn't seem all that wise to encourage people to use them.  There
are gotchas if any of the rows receive concurrent updates.

FWIW, it might be helpful to cast this as a NOT EXISTS rather than
NOT IN subquery.

			regards, tom lane



view thread (8+ messages)  latest in thread

Message-ID: <22819.1343145325@sss.pgh.pa.us>
Permalink:  ../22819.1343145325@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/22819.1343145325@sss.pgh.pa.us

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, spam_eater@gmx.net
  Subject: Re: Using ctid column changes plan drastically
  In-Reply-To: <22819.1343145325@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